Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 1, 3)) Equal to 'fa
(Substring((Entered chat string), 4, 4)) Equal to
Then - Actions
Unit Group - Pick every unit in a_tmpUnitGroup01[(Player number of (Triggering player))] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is selected by (Triggering player)) Equal to True
(Unit-type of (Picked unit)) Not equal to RoTRP Spawner
Then - Actions
Unit - Make (Picked unit) face (Real((Substring((Entered chat string), 5, 7)))) over 1.00 seconds
Else - Actions
Skip remaining actions
Unit Group - Destroy unit group a_tmpUnitGroup01[(Player number of (Triggering player))]
Else - Actions
This is the trigger. In theory, it should make it so if I type 'fa 90, it will rotate the building 90 degrees. The problem is, it doesn't quite do that. It rotates the building, but it does not appear to know where 90 degrees is.
I was wondering if anyone could help me make this work right. Thanks.