trigger question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

trigger question

Post by 7th Es Cyborg »

ok i want to make sort of a door that is set of by a trigger but only does it once, I know I can use the useonce trigger but what i want is for it to open when the trigger is shot not when used - can that be done?
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

Post by 7th Es Cyborg »

just thought of this - can I put a script object type brush around the door that targets the useonce trigger?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Just delete the trigger after it's fired. For example, add key setthread value remove and add this to your map's script:

remove:
waitframe
$trigger remove
end

in case 'trigger' is the targetname of your trigger.
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Would #cnt 1 only let the trigger fire once.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ah yes that should be possible also.

Better even :shock: .
Image
Post Reply