Jump to content

Home

Running a script after an emplaced gun is destroyed


dimi30

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...