randydg Posted July 15, 2008 Share Posted July 15, 2008 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. Link to comment Share on other sites More sharing options...
stoffe Posted July 15, 2008 Share Posted July 15, 2008 How do you destroy a trigger in a script? void main() { DestroyObject( GetObjectByTag("[color=Yellow]TagOfTrigger[/color]") ); } Link to comment Share on other sites More sharing options...
randydg Posted July 15, 2008 Author Share Posted July 15, 2008 thanks stoffe always to the rescue when we get stuck on a code Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.