Hide/Delete trigger after explosion ?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Hide/Delete trigger after explosion ?

Post by mcunha98 »

Hi,

I have a objective in my map. This objective have a trigger, model, bla bla ... my question is how i hide/delete the trigger after the objective is completed ?

I try $trigger_obj1 hide but nothing...

Some idea ?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

$trigger_obj1 remove

or

$trigger_obj1 nottriggerable
Tom Trude,

Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

tltrude wrote:$trigger_obj1 remove

or

$trigger_obj1 nottriggerable
Tom,

Again... thanks a lot for usefull help.
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Tom

Sorry, but dont work. :cry:
I believe is correct the code, ok ?


bomb1_exploded local.bomb1:
while (local.bomb1.exploded != 1)
wait .1
exec global/exploder.scr::explode 1
$radio_sound1 stoploopsound radio_snd
$radio_explosive1 hide
$radio_trigger1 remove
$alert_sound1 loopsound alert_snd
iprintlnbold "Room control destroyed"
end

bomb2_exploded local.bomb2:
while (local.bomb2.exploded != 1)
wait .1
exec global/exploder.scr::explode 2
$flak88_trigger1 remove
$alert_sound1 loopsound alert_snd
iprintlnbold "V2 destroyed"
end
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

Try "delete".
Tom Trude,

Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

did you tried
$radio_trigger1 nottriggerable
...
$flak88_trigger1 nottriggerable

???
Old nickname: Bartjerambo
New nickname: Barttje
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Remove works perfectly :?
Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Ok i will try 2 methods and soon post result.
Thanks for suggestions.
Post Reply