Hello poeple,
Today i'm looking for something specific on Instance variable.
I have create an Object ( We will name it Door ) with two Instance variables : ID_ and On ( ID_ Can have multiple Value and On can only have 0 or 1 )
Then what i looking for is :
When i create a new object ( Door ) on the layer i would like to set his ID_ variable to a new one than the previous one, for exemple :
If i have one object ( Door ) on the layer with the ID_0, when i create a new object ( Door ) on the Layer i would like his ID_ was different than the previous one ( ID_1 ) and this evry time i create a new object ( Door ) on the layer. ( ID_2, ID_3, ID_4, etc... )
This is the first thing i need, so now the second.
If i interact with this object ( Door ) i have add an action for set the On variable to 1, then if i have multiple object when i interact with one it will set all the object ( Door ) to 1, but i want to set this variable only to the object ( Door ) i interact with.
Hope someone have the solution.
Thank you =D