Hi guys I have been stumped on two matters of identifying players and created units.
I am having players select units from a selection menu, then the units spawn on the map.
I then have some variables setup through Triggering Player, when they press a key.
Now i have set up a trigger that is running from Event: Timer - Every 0.05 seconds of Game Time
In this trigger I am having trouble with referencing the variables i set up outside the trigger because Triggering Player is greyed out. So I can't do Variable Name [Triggering Player] == True
The second problem is that in this trigger, I am trying to "Issue Order" for the units that have been created from the selection menu, but I am not sure how to identify the unit created for each player.
exp: Order _ to ( Move....
The first thing you need to know is that players are just integer values.
If you are creating a unit for players from a selection screen is it usually best to immediately save the unit in an array at the index identical to the player integer.
Anything with "triggering" refers directly to the event only and the event itself must contain that info within it. Depending on what your loop is doing (loops btw should be used instead of periodic events) you will likely need to loop through the player integers in some form or another and then issue the order based on the unit array.
Hi guys I have been stumped on two matters of identifying players and created units.
I am having players select units from a selection menu, then the units spawn on the map. I then have some variables setup through Triggering Player, when they press a key.
Now i have set up a trigger that is running from Event: Timer - Every 0.05 seconds of Game Time
In this trigger I am having trouble with referencing the variables i set up outside the trigger because Triggering Player is greyed out. So I can't do Variable Name [Triggering Player] == True
The second problem is that in this trigger, I am trying to "Issue Order" for the units that have been created from the selection menu, but I am not sure how to identify the unit created for each player. exp: Order _ to ( Move....
@baca25: Go
The first thing you need to know is that players are just integer values.
If you are creating a unit for players from a selection screen is it usually best to immediately save the unit in an array at the index identical to the player integer.
Anything with "triggering" refers directly to the event only and the event itself must contain that info within it. Depending on what your loop is doing (loops btw should be used instead of periodic events) you will likely need to loop through the player integers in some form or another and then issue the order based on the unit array.