Jump to content
Sign in to follow this  
hcpookie

DROP from turret

Recommended Posts

Is there a solution to making the DROP command work from a turret vs. the vehicle?

I'm exploring options for the DROP command. I'm creating ejected shells from a turret weapon (on a single-turret vehicle) using the FIRED EH. I have working ejected shells that spawn directly underneath the vehicle turret (door gunner). Which looks good from external view, but it doesn't follow the gun when it rotates around. So sitting in cargo, you don't see the door gunner's shells spawning from the gun. I wish to make the ejected shells spawn at the turret weapon ejection port to complete the effect.

The only way I can make them work is to make the DROP command "follow" the vehicle. When I set the command to "follow" the weapon (this select 1) nothing is spawned. I suspect therefore that the 'follow' setting of the Drop command is unable to work with sections of a vehicle (e.g. the turrets). It is difficult to search for "DROP" on the forums... :)

The best solution I can think of is to script from the fired EH to 'createVehiclelocal' a shell model, and then either "getdir" or do some simple math to pass to "setvelocity" to get it moving away from the gun to simulate the ejection. Then delete the model after a few seconds to prevent buildup of 3D models.

... or something else...?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×