- Joined
- Mar 30, 2008
- Messages
- 666
This is the trigger:
-
Sniper Zoom
-
Events
- Unit - A unit Starts the effect of an ability
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Zoom In
-
Then - Actions
- Custom script: call CinematicFilterGenericForPlayer(GetOwningPlayer( GetSpellAbilityUnit( ) ), 2.0, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\Sniper Rifle Scope", 100.0, 100.0, 100.0, 0.0, 100.0, 100.0, 100.0, 0.0 )
- Unit - Add Zoom Out to (Casting unit)
- Unit - Remove (Ability being cast) from (Casting unit)
- Unit - Set (Casting unit) movement speed to 0.00
- Set Zoomed[(Player number of (Owner of (Casting unit)))] = True
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Zoom Out
-
Then - Actions
- Custom script: call CinematicFilterGenericForPlayer(GetOwningPlayer( GetSpellAbilityUnit( ) ), 2.0, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0 )
- Unit - Add Zoom In to (Casting unit)
- Unit - Remove (Ability being cast) from (Casting unit)
- Unit - Set (Casting unit) movement speed to (Default movement speed of (Casting unit))
- Set Zoomed[(Player number of (Owner of (Casting unit)))] = False
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
- call CinematicFilterGenericForPlayer(GetOwningPlayer( GetSpellAbilityUnit( ) ), 2.0, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\Sniper Rifle Scope", 100.0, 100.0, 100.0, 0.0, 100.0, 100.0, 100.0, 0.0 )
- call CinematicFilterGenericForPlayer(GetOwningPlayer( GetSpellAbilityUnit( ) ), 2.0, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0, 100.0 )