Ok so I have a system set up to when you collide with another object that object becomes the player, so you can switch off and on from one player to the next.
What Im having problems with is the object numbers in the array.
Please help with this.
for players=200 to 201
playerdistance = Dist(object position x(players) , object position y(players),object position z(players) , object position x(players) ,object position y(players) , object position z(players))
if playerdistance<200 and actions(players).player=1 and returnkey()=1 then dec actions(players).player,1 :wait 200
if playerdistance<200 and actions(players).player=0 and returnkey()=1 then inc actions(players).player,1 :wait 200
if actions(players).player>1 then actions(players).player=1
if actions(players).player<0 then actions(players).player=0
next players
So basically I am checking for distances for myself also as all the player objects are the same grouped array and would have to be.
So the program has to do a switch but can not decide what numbered object to switch.
Unless I can some how point another name for current player.