- Joined
- Sep 27, 2011
- Messages
- 141
i have a problem with my hero picking systemthe problem being that either the hero pick controller (Hero Pick) is not created for any player except player 1 or that it is just not added to their selection can anyone see the problem in my coding?
-
Actions
-
Set Human_Players = (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User)))
-
Player Group - Pick every player in Human_Players and do (Actions)
-
Loop - Actions
-
Set Player_Number = (Player number of (Picked player))
-
Set Hero_Pick_Number[Player_Number] = 1
-
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across hero pick region <gen>
-
Set Hero_Picking_Locs = (Random point in hero pick controllers <gen>)
-
Unit - Create 1 Hero pick for (Picked player) at Hero_Picking_Locs facing Default building facing degrees
-
Unit - Pause (Last created unit)
-
Set Hero_Pick_Controller[Player_Number] = (Last created unit)
-
Unit - Add a 45.00 second Generic expiration timer to (Last created unit)
-
Selection - Add Hero_Pick_Controller[Player_Number] to selection for (Picked player)
-
Player Group - Add (Picked player) to Picking_Players
-
Custom script: call RemoveLocation(udg_Hero_Picking_Locs)
-
Custom script: call CameraSetupApplyForPlayer( true, udg_Camera[udg_Hero_Pick_Number[udg_Player_Number]], GetEnumPlayer(), 0 )
-
-
-
Custom script: call DestroyForce(udg_Human_Players)
-