So, I have one object to govern items, but I'm having trouble getting their individual gravity. I got this working once before back in the MMF2 days using the ForEach object, but it's not working the same as the one built into CTF2.5 The gravity functions for the most part, but tends to jitter when multiple item objects are spawned.
Code
* Grav("Items") < 7
- Add 0.325 to Grav("Items")
* Number of ("Items") > 0
- Start loop for each one of ("Items"), loop name "ItemGravEach"
* On each of ("Items"), loop name "ItemGravEach"
- Set LoopIndex("Items") to ForEachLoopIndex("Items")
* On each of ("Items"), loop name "ItemGravEach"
- Start loop "ItemGrav" Abs(Grav("Items")) times
* On loop "ItemGrav"
* Grav("Items") < 0
* Pick object which Alterable Value G = ForEachLoopIndex("Items")
- Set position ("Items") to Y ("Items") - 1
* On loop "ItemGrav"
* Grav("Items") > 0
* Pick object which Alterable Value G = ForEachLoopIndex("Items")
- Set position ("Items") to Y ("Items") + 1
Display More
Any help would be greatly appreciated.