27.08.2018, 10:49
Hey there!
What do you recommend to loop through 250 * 6 array? (Sorry for my bad english, here is an example)
This callback also will called multiple times, becouse the player is interact with the object about random (1, 4) times so I'd like to run this on OnDynamicObjectMoved. Or should I re-move the object with a timer?
Or do you have any other advice?
What do you recommend to loop through 250 * 6 array? (Sorry for my bad english, here is an example)
Код:
if( ... ) { for(new idx; idx < 250; idx++) { for(new slot; slot < 6; slot++) { if(Variable[idx][slot] == objectid) { <Move the object to a new pos> } } } }
Or do you have any other advice?