I have this trigger:
Why?
How can i modify it to create a random unit type for each player?
PS: ARUnit_Types is a Unit-type Array(8) variable.
-
Ramdomize Units AR
-
Events
-
Conditions
-
Actions
-
-------- -------------------------- --------
-
Set ARUnit_Types[1] = Footman
-
Set ARUnit_Types[2] = Whatever unit123
-
Set ARUnit_Types[3] = Whatever unit4
-
Set ARUnit_Types[4] = Whatever unit324
-
Set ARUnit_Types[5] = Whatever unit54
-
Set ARUnit_Types[6] = Whatever unit5567
-
Set ARUnit_Types[7] = Whatever unit78
-
-------- -------------------------- --------
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(((Picked player) controller) Equal to User) and (((Picked player) slot status) Equal to Is playing)
-
-
Then - Actions
-
Unit - Create 1 ARUnit_Types[(Random integer number between 1 and 7)] for (Picked player) at ((Picked player) start location) facing Default building facing degrees
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
Why?
How can i modify it to create a random unit type for each player?
PS: ARUnit_Types is a Unit-type Array(8) variable.