Jump to content
Sign in to follow this  
hammy

Rpg rocket

Recommended Posts

Im currently working on a RPG and i dont know how to make it so when the user fires the rocket on the end disapears and when its reloaded it reappears. how would i make the model? would i make two different models of the RPG one with the rocket on the end and one without? or would i make a model of the RPG without the rocket and make the rocket in a different p3d? would scripts be nessicary(sp)? or could i do it all in the cpp file?

ps. im new to cpp making wink_o.gif

Share this post


Link to post
Share on other sites

You need two models, one with the rocket on the end, the other without. Then in the cpp, you use modelspecial to tell the game which one to use. (look at NP2, JAM or Keg's RPG7 cpps for examples)

SelectThis

Share this post


Link to post
Share on other sites
Quote[/b] ]Then in the cpp, you use modelspecial to tell the game which one to use.

Can this modelspecial be used on the model or just part there of?

And if so, does it transfer the driver, gunner etc to the replacement model?

If you know what I mean.

Share this post


Link to post
Share on other sites

Modelspecial is pretty limited in scope. ie it only works for weapon classes. What it does is to let you use one model for a "loaded" weapon and a different one for a "unloaded" one.

eg start with a unloaded rpg tube, when it's reloaded with a rocket it swaps the model. Once you fire the weapon the model switches back to the unloaded one.

SelectThis

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  

×