I have a switch case type of setup where I check a variable in my landing pods upon hitting the ground and depending on the variable make them spawn a different unit. In that event I also push the spawned unit's UID to an array to keep track of my spawned units.
Now when I have two pods with the same variable the Array>Push front command does not seem to enter a vaild UID, I only get a 0 for that second UID.
Is this an issue of the array command? Or is retreiveing multiple UIDs in one tick somehow problematic?
Develop games in your browser. Powerful, performant & highly capable.
You got it right. Retrieving multiple UIDs in the Array's "action context" is impossible. You simply have to add a "for each LandingPod" under the "spawnType = 0" condition.
Perfect, working now.