PDA

View Full Version : How do you destroy a trigger in a script?


randydg
07-15-2008, 06:36 PM
How do you destroy a trigger in a script?

I dont want the npc to leave I just want to destroy the trigger after it fires once.

Oh, also for some reason I'm having trouble with waypoints.

I created 2 waypoints one on each side of the door in 2 different modules.

1. WP_from_Hall in 592COR
2. WP_from952 in 594COR

but for somereason I jump to the default spawn location instead of the wp location. I have Linktoflags set to 2, I have linktomodule set to the proper module(I know this part works cause i goto the right module just not to the waypoint), and linkedto is set to the wp name such as WP_from_Hall
I'm not sure what I'm doing wrong.

stoffe
07-15-2008, 07:10 PM
How do you destroy a trigger in a script?



void main() {
DestroyObject( GetObjectByTag("TagOfTrigger") );
}

randydg
07-15-2008, 08:43 PM
thanks stoffe always to the rescue when we get stuck on a code :)