• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

is it possible to create a variable via a script then passed to the object ?

L

Linkdeous

Guest
Hello, as i did another post about it , i'm making a pipe and stuff object, and i would need all of them to have the same variable . Of course i could make a base object that i would duplicate so they would have all the same values, but i think this would be more troublesome than just a script in the create event that would create variable inside the object . Is it possible ? i think that just making this :
///tag_tank(volume,RoT,isPump,pumpSpeed);

argument0=vol;
argument1=RoT;
argument2=isPump;//if pump : will be able to pump from other object instead of just giving to another object liquid
argument3=pumpSpeed;


will not actually make new variables inside the object
 

The-any-Key

Member
If you call this script
Code:
my_var=1
Inside an event in an instance. my_var will be defined in that instance and can be used later.
 
Top