Try to do some scripting, but…
Two objects in the map, one func_explosive (axisgenerator), one trigger_hurt (securedoor_th) and two speakers. The idea is, that with the demolition of the func_explosive, the trigger_hurt will be disabled. The func_explosive is working fine, however, the script is not fully working! The generator blows up fine, the wm_announce is playing, but nothing else… Sound will not be disabled and the trigger_hurt-part is also missing!
axisgenerator
{
spawn
{
wait 200
constructible_class 3
constructible_destructxpbonus 30
}
death
{
disablespeaker generator_sound
wm_announce "Power generator destroyed!"
wait 100
trigger securedoor_th powerdown
wait 500
remove
}
}
securedoor_th
{
spawn
{
wait 100
enablespeaker securedoor_sound
}
trigger powerdown
{
wait 100
setstate securedoor_th invisible
disablespeaker securedoor_sound
wm_announce "Power is down!"
wait 500
remove
}
}
Any help?
-Mizar
