Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
FirstPersonSystem.w3x
Variables
Init
Init
Attack
AttackClick
AttackTimer
Camera
Camera
CameraMouse
Movement
Forward
Forward Simple
Forward Loop
Forward Stop
Backward
Backward Simple
Backward Loop
Backward Stop
Right
Right Simple
Right Loop
Right Stop
Left
Left Simple
Left Loop
Left Stop
Escribe debajo el código del guión personalizado especial para el mapa. El texto se incluirá en el guión del mapa después de declarar las variables y antes de los códigos de los detonadores.
Name
Type
is_array
initial_value
FPS_Attacking
boolean
No
FPS_AttackTimer
timer
No
FPS_Backward
real
No
FPS_Forward
real
No
FPS_Left
real
No
FPS_MoveSpeed
real
No
FPS_RightRight
real
No
HERO
unit
No
TempGroup
group
No
Init
Events
Map initialization
Conditions
Actions
Set Variable Set HERO = Unknown 0000 <gen>
AttackClick
Events
Player - Player 1 (Red) issues Mouse Up event
Conditions
(Trigger Mouse Button) Equal to Left Mouse Button
Actions
Selection - Clear selection for Player 1 (Red) .
Selection - Select HERO for Player 1 (Red)
Set Variable Set FPS_Attacking = "true"
Animation - Play HERO 's attack animation
Countdown Timer - Start FPS_AttackTimer as a One-shot timer that will expire in 0.80 seconds
Trigger - Turn off (This trigger)
Wait 0.40 seconds
Set Variable Set TempGroup = (Units within 150.00 of (Position of HERO) matching (((Matching unit) belongs to an enemy of (Owner of HERO).) Equal to True).)
Unit Group - Pick every unit in (Units within 150.00 of ((Position of HERO) offset by 50.00 towards (Facing of HERO) degrees.) matching (((Matching unit) belongs to an enemy of (Owner of HERO).) Equal to True).) and do (Actions)
Loop - Actions
Unit - Cause HERO to damage (Picked unit) , dealing ((Real((Strength of HERO (Include bonuses)))) x 3.00) damage of attack type Hero and damage type Normal
Custom script: call DestroyGroup (udg_TempGroup)
Destructible - Pick every destructible within 150.00 of ((Position of HERO) offset by 50.00 towards (Facing of HERO) degrees.) and do (Actions)
Loop - Actions
Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - (Real((Strength of HERO (Include bonuses)))))
Wait 0.20 seconds
Trigger - Turn on (This trigger)
AttackTimer
Events
Time - FPS_AttackTimer expires
Conditions
Actions
Set Variable Set FPS_Attacking = "false"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.