Drazalon
New Member
- Reaction score
- 3
Ok i just need a trigger that uses a periodic event that re-adjusts the camera of the matching unit type.
Help would be appriciated =]
Reward= +1Rep
Code:
list
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Dialog - Change the title of list[1] to Chose a unit
Dialog - Create a dialog button for list[1] labelled Archer
Set unit[1] = (Last created dialog Button)
Dialog - Create a dialog button for list[1] labelled Knight
Set unit[2] = (Last created dialog Button)
Dialog - Show list[1] for Player 1 (Red)
Code:
Archer
Events
Dialog - A dialog button is clicked for list[1]
Conditions
Actions
If ((Clicked dialog button) Equal to unit[1]) then do (Unit - Create 1 Archer for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
Camera - Lock camera target for Player 1 (Red) to (Last created unit), offset by (0.00, 0.00) using The unit's rotation
Code:
Knight
Events
Dialog - A dialog button is clicked for list[1]
Conditions
Actions
If ((Clicked dialog button) Equal to unit[2]) then do (Unit - Create 1 Knight for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
Camera - Lock camera target for Player 1 (Red) to (Last created unit), offset by (0.00, 0.00) using The unit's rotation
Help would be appriciated =]
Reward= +1Rep