PDA

View Full Version : Eventhandler on weapons?



Axo
Feb 1 2003, 02:40
I´m trying to add an eventhandler "fired" to a weapon in the cpp. Just doing so doesn´t work.
I know how to add it to the vehicle class of the soldier, but that doesn´t work if the weapon is picked-up from the field...
Can be done? workarounds?

Rastavovich
Feb 2 2003, 08:35
You could check the soldier that holds the weapon for firing, but thenn the weapon is only usable by a specific soldier type.