- Joined
- Aug 12, 2007
- Messages
- 3
In various maps such as DoBRP8, there is an in-game player-triggered unit rotation command. I need a similar feature for a specific aspect of my own map.
All of my triggering seems to be correct, but I encountered a problem while rotating buildings: They are given the Move, Stop, Hold Position, and Patrol abilities (I do not want this!). I modified the Object Info as followed:
Abilities - Normal = <Empty Value>
Art - Ground Texture = None
Movement - Turn Rate = 0.10
Pathing - Placement Requires - <Empty Value>
Stats - Unit Classification = Mechanical, Summoned
Triggering is as follows:
All of my triggering seems to be correct, but I encountered a problem while rotating buildings: They are given the Move, Stop, Hold Position, and Patrol abilities (I do not want this!). I modified the Object Info as followed:
Abilities - Normal = <Empty Value>
Art - Ground Texture = None
Movement - Turn Rate = 0.10
Pathing - Placement Requires - <Empty Value>
Stats - Unit Classification = Mechanical, Summoned
Triggering is as follows:
- Events
- [INDENT]Player - Player 1 (Red) types a chat message containing rotate as An exact match[/INDENT]
- Conditions
- Actions
- [INDENT]If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- [INDENT]If - Conditions
- [INDENT](Entered chat string) Equal to rotate[/INDENT]
- Then - Actions
- [INDENT]Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
- [INDENT]If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- [INDENT]If - Conditions
- [INDENT]Owner of (Picked unit) Equal to (Triggering player)[/INDENT]
- Then - Actions
- [INDENT]Unit - Make (Picked unit) face VAfootman[(Player number of (Triggering player))] over 0.50 seconds[/INDENT]
- Else - Actions[/INDENT][/INDENT][/INDENT]
- Else - Actions[/INDENT][/INDENT]