- Joined
- Feb 4, 2005
- Messages
- 3,971
I'm replacing an old ability system with land/take off to happen with chat strings. I want to make so that whatever number is included in the chat command, the altitude to be changed to that number. I couldn't think of a way.
-
Commands
-
Events
-
Player - Player 7 (Green) types a chat message containing <Empty String> as An exact match
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to /altitude X ;;this is the command and X is the number;;
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units currently selected by Player 7 (Green)) and do (If (((Picked unit) is A flying unit) Equal to True) then do (Animation - Change (Picked unit) flying height to (The X in the chat string) at 100.00) else do (Do nothing))
-
-
Else - Actions
-
-
-