Post your scripting questions / solutions here
Moderator: Moderators
7th Es Cyborg
First Lieutenant
Posts: 189 Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:
Post
by 7th Es Cyborg » Fri Jan 31, 2003 6:29 am
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 » Fri Jan 31, 2003 6:46 am
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 » Fri Jan 31, 2003 11:48 am
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.
Angex
Major
Posts: 293 Joined: Mon Dec 30, 2002 1:23 pm
Contact:
Post
by Angex » Fri Jan 31, 2003 12:09 pm
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 » Fri Jan 31, 2003 12:16 pm
Ah yes that should be possible also.
Better even
.