• Entity Question
    3 replies, posted
So I am making an e2 thing that finds automaticly when I fire an rpg then change the color for the rpg. What is the entity name for the rpg that is fired from the rocket launcher?
why don't you find it yourself with an OnEntityCreated hook? [editline]5th January 2014[/editline] To answer your question, it is rpg_missile the smoke trail is env_rockettrail and the laser is env_laserdot [editline]5th January 2014[/editline] all this I found with this very simple command that you can run from console on the go: [code]lua_run hook.Add( "OnEntityCreated" , "lole detector 9000" , function( ent ) print(ent) end)[/code]
Ty now i will know for the future. I didnt know that command existed
well, technically lua_run is the command, and you can run any valid lua code from it. the stuff that follows is the actual code.
Sorry, you need to Log In to post a reply to this thread.