dimi30 Posted August 21, 2002 Share Posted August 21, 2002 Is it possible to run a script when the player destroys an emplaced gun. Since the gun is not an NPC there is no way to make it use a target when it dies(or is there?). I also tried doing it through scripting using the "if" command but I won't work either. Link to comment Share on other sites More sharing options...
idontlikegeorge Posted August 21, 2002 Share Posted August 21, 2002 well, since it is an entity, you could always try to have it target a scriptrunner... dont know when it would activate it, though im assuming on death (cuz alot of entities fire when they are destroyed/etc.) Link to comment Share on other sites More sharing options...
dimi30 Posted August 21, 2002 Author Share Posted August 21, 2002 I just tested it. It doesn't work. Link to comment Share on other sites More sharing options...
Leslie Judge Posted August 21, 2002 Share Posted August 21, 2002 An idea: place a func_breakable near that gun, so the gun can destroy it when it blows up, and that func_breakable will fire its target when destroyed and that can be a target_scriptrunner. This way the destruction will also be more 'dramatic'. The gun blows and a piece of wall ruins... Link to comment Share on other sites More sharing options...
dimi30 Posted August 21, 2002 Author Share Posted August 21, 2002 I did excactly the same thought. The problem is that the func_breakable will be destroyed when the player is hitting the gun and not only when the gun blows up(I want the gun to have health and not die with 1 hit). Link to comment Share on other sites More sharing options...
Joben Posted August 21, 2002 Share Posted August 21, 2002 what they dont fire their a target on death? ...weird o_O can you give them a 'deathscript' like a NPCs? Can you put thee func_breakable INSIDE the gun? then shots hitting the gun might now break it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.