Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

IMYSomething Parameters

$
0
0
Hello,

I'm starting to code in SE and i have a question. I made a script that simply check inventory of a certain block and do an action if it reach a certain amount (basicly if you don't have bullet, go back to base).

My Question is. Can you do something like this ?
Code:
const string test = "IMyLargeGatlingTurret";;
IMy"+test+" container = (IMy"+test+")work[0];
It's not a pain to change it for a small ship but i would like to have a minimum of personalisation for my script.

If...

IMYSomething Parameters

Viewing all articles
Browse latest Browse all 903

Trending Articles