This trigger can lock all units(all player colour,enemy and building)
variables
Position_of_picked_unit = Point
--------------------------------------------------------------------------
trigger:
3D on
Events
Player - Player 10 (Light Blue) types a chat message containing on as Match Type
Conditions
Actions
Trigger - Turn on Select all <gen>
Trigger - Turn on Deselect all <gen>
Trigger - Turn on lock cam all <gen>
--------------------------------------------------------------------------
trigger:
3D off
Events
Player - Player 10 (Light Blue) types a chat message containing off as Match Type
Conditions
Actions
Trigger - Turn off Select all <gen>
Trigger - Turn off Deselect all <gen>
Trigger - Turn off lock cam all <gen>
Camera - Reset camera for Player 10 (Light Blue) to standard game-view over 0.00 seconds
--------------------------------------------------------------------------
trigger:
Select all
Events
Player - Player 10 (Light Blue) Selects a unit
Conditions
(Player 10 (Light Blue) controller) equal User
Actions
Trigger - Turn on lock cam all <gen>
--------------------------------------------------------------------------
trigger:
Deselect all (Trigger is Initially On - Is off)
Events
Player - Player 10 (Light Blue) Deselects a unit
Conditions
Actions
Trigger - Turn off lock cam all <gen>
--------------------------------------------------------------------------
trigger:
lock cam all (Trigger is Initially On - Is off)
Events
Time - Every 0.60 seconds of game time
Conditions
(Player 10 (Light Blue) controller) equal User
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units currently selected by Player 10 (Light Blue)) and do (Actions)
Loop - Actions
Set Position_of_picked_unit = (Position of (Picked unit))
Camera - Lock camera target for Player 10 (Light Blue) to (Picked unit), offset by (0.00, 0.00) using Default Rotation
Camera - Pan camera for Player 10 (Light Blue) to Position_of_picked_unit over 2.00 seconds
Camera - Set Player 10 (Light Blue)'s camera Distance to target to 1200.00 over 3.75 seconds
Camera - Set Player 10 (Light Blue)'s camera Angle of Attack to -24.00 over 3.75 seconds
Camera - Set Player 10 (Light Blue)'s camera Height Offset to 100.00 over 1.00 seconds
Camera - Set Player 10 (Light Blue)'s camera Rotation to (Facing of (Picked unit)) over 2.30 seconds
Custom script: call RemoveLocation(udg_Position_of_picked_unit)
--------------------------------------------------------------------------
The trigger have any problem?
variables
Position_of_picked_unit = Point
--------------------------------------------------------------------------
trigger:
3D on
Events
Player - Player 10 (Light Blue) types a chat message containing on as Match Type
Conditions
Actions
Trigger - Turn on Select all <gen>
Trigger - Turn on Deselect all <gen>
Trigger - Turn on lock cam all <gen>
--------------------------------------------------------------------------
trigger:
3D off
Events
Player - Player 10 (Light Blue) types a chat message containing off as Match Type
Conditions
Actions
Trigger - Turn off Select all <gen>
Trigger - Turn off Deselect all <gen>
Trigger - Turn off lock cam all <gen>
Camera - Reset camera for Player 10 (Light Blue) to standard game-view over 0.00 seconds
--------------------------------------------------------------------------
trigger:
Select all
Events
Player - Player 10 (Light Blue) Selects a unit
Conditions
(Player 10 (Light Blue) controller) equal User
Actions
Trigger - Turn on lock cam all <gen>
--------------------------------------------------------------------------
trigger:
Deselect all (Trigger is Initially On - Is off)
Events
Player - Player 10 (Light Blue) Deselects a unit
Conditions
Actions
Trigger - Turn off lock cam all <gen>
--------------------------------------------------------------------------
trigger:
lock cam all (Trigger is Initially On - Is off)
Events
Time - Every 0.60 seconds of game time
Conditions
(Player 10 (Light Blue) controller) equal User
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units currently selected by Player 10 (Light Blue)) and do (Actions)
Loop - Actions
Set Position_of_picked_unit = (Position of (Picked unit))
Camera - Lock camera target for Player 10 (Light Blue) to (Picked unit), offset by (0.00, 0.00) using Default Rotation
Camera - Pan camera for Player 10 (Light Blue) to Position_of_picked_unit over 2.00 seconds
Camera - Set Player 10 (Light Blue)'s camera Distance to target to 1200.00 over 3.75 seconds
Camera - Set Player 10 (Light Blue)'s camera Angle of Attack to -24.00 over 3.75 seconds
Camera - Set Player 10 (Light Blue)'s camera Height Offset to 100.00 over 1.00 seconds
Camera - Set Player 10 (Light Blue)'s camera Rotation to (Facing of (Picked unit)) over 2.30 seconds
Custom script: call RemoveLocation(udg_Position_of_picked_unit)
--------------------------------------------------------------------------
The trigger have any problem?
Last edited: