View Single Post
Inhib
Member
Join Date: Oct 2014
Old 12-28-2014 , 00:54   [Help] Spawning Rocket, Setting Entity Properties(TF2)
Reply With Quote #12

Reply With Quote Multi-Quote This Message #1
I need to spawn a rocket in tf2, I know the client(who fired it), position, angle and velocity.
the code I have so far:
PHP Code:
            new rocket_entity CreateEntityByName("tf_projectile_rocket");
            
DispatchSpawn(rocket_entity);
            
TeleportEntity(rocket_entityrocketposvectorfloatNULL_VECTOR); 
I need to set the ent data and I have no idea how or what to set for the rocket, and thats what I need help with.

Thanks in advance!
Inhib is offline