PDA

View Full Version : Custom anim. triggered by weapon selection?



brsseb
Dec 4 2002, 15:00
Hi

Got a problem

Im well on my way with the Comanche , but Ive got a problem. Is there a way to trigger an animation when a certan weapon type is selected? The chopper have cannon and 1-2 rocket types onboard. I want the baydoors (where 4 rockets are hidden, for example 4 hellfires) to open when these weapons is selected by the gunner, and close again when gunner selects cannon instead. Possible ??(couldnt find any EventHandler that cared about weapons, though. So most likely not. Had to ask anyway http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/smile.gif )

Comancheshots at
ofp.info/brsseb (http://www.ofp.info/brsseb)

brsseb

DragoFire
Dec 4 2002, 17:39
Best/easiest thing to do is, use a if statement.

eg.

If weapon in position 1 disable (been a long time since I did coding, so someone will know how to code this)

All you need is something like this, where position one is the stored position. And all that happens is the weapon will only fire if it isn't stored.

DragoFire