how do i make the trigger work twice?
Posted: Thu Apr 15, 2004 9:52 pm
hello
in stock map
i have an airstrike called by binoc's then it drops the bomb where u clicked wiht binoculars. it explodes on what it hits. if nothing then ur target.
fire is then left when the explosion finishes. if somoone walks into the fire. they catch alite and slowly burn to death.. this only works once. i want to get the fire bit working more then once thne maybe i can get the airstrike working many times 2.
thats the code i use. and the guy walks into the fire on the floor. the guy has fire spawn on him. then a trigger spawns on him making him die. then the fire hides. i used hide so maybe i could make it move to the next guy then re-apear..but then only 1 guy at a time can be on fire. any ideas?
do i use triggerable again?. this is my first ever script so i is a n00b.hehe. sorry
in stock map
i have an airstrike called by binoc's then it drops the bomb where u clicked wiht binoculars. it explodes on what it hits. if nothing then ur target.
fire is then left when the explosion finishes. if somoone walks into the fire. they catch alite and slowly burn to death.. this only works once. i want to get the fire bit working more then once thne maybe i can get the airstrike working many times 2.
Code: Select all
fire_hurt:
local.fire_hurt = spawn trigger_multiple
local.fire_hurt.origin = $fire.origin
local.fire_hurt targetname fire_hurt
local.fire_hurt setsize ( -30 -30 -30 ) ( 30 30 30 )
$fire_hurt waittill trigger
local.player=parm.other
local.fire2 = spawn script_model "targetname" "fire2"
local.fire2 model "static/fire.tik"
local.fire2.origin = local.player.origin
local.fire2.scale = 1.0
local.fire2 notsolid
local.fire2 glue local.player
thread burn_player
end
burn_player:
local.fire_burn = spawn trigger_multiple "targetname" "burn_player"
local.fire_burn.origin = $fire2.origin
local.fire_burn targetname fire_burn
local.fire_burn message "You Will Die Soon"
local.fire_burn setsize ( -30 -30 -30 ) ( 30 30 30 )
$fire_burn waittill trigger
$burn_player glue $fire2
local.player=parm.other
local.player hurt 10
wait 1
local.player hurt 20
wait 1 //hurt them again because only 1 hurt works the 1 time:S
local.player hurt 20
wait 1
local.player hurt 20
wait 1
local.player hurt 20
wait 1
local.player hurt 20
$fire2 hide
end
do i use triggerable again?. this is my first ever script so i is a n00b.hehe. sorry