- Joined
- Jan 20, 2011
- Messages
- 492
Hey guys, I'm trying to make a hero selection system, and I want to lock selection onto one unit which is the store you buy your heroes from, however I'm using the line
So how do I disable selection for one particular player?
Thanks in advance.
- Game - Disable selection and deselection functionality (Enable selection circles)
- Unit - Create 1 Hero Selection for (Picked player) at temploc facing Default building facing degrees
- Selection - Select (Last created unit) for (Picked player)
So how do I disable selection for one particular player?
Thanks in advance.
-
Hero Selection Creator
-
Events
- Dialog - A dialog button is clicked for CSDialog
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Clicked dialog button) Equal to CSDialogButton[1]
-
Then - Actions
-
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
- ((Picked player) slot status) Equal to Is playing
-
Then - Actions
- Sound - Play InGameChatWhat1 <gen>
- Set temploc = (Center of Region 036 <gen>)
- Game - Disable selection and deselection functionality (Enable selection circles)
- Unit - Create 1 Hero Selection for (Picked player) at temploc facing Default building facing degrees
- Selection - Select (Last created unit) for (Picked player)
- Custom script: call RemoveLocation(udg_temploc)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Else - Actions
- Game - Display to (Player group((Triggering player))) the text: Type in your code b...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events