Jump to content
Sign in to follow this  
blackpixxel

Eventhandler in Weapon config.cpp

Recommended Posts

Hi there!

I want to 'attach' some eventhandlers to a weapon via the config.cpp . I just don't know where to place it.

The Biki says like this:

class CfgVehicles

{

//...

//(other config code)

//...

class myVehicle: car

{

//...

//(other config code)

//...

class EventHandlers

{

init = "_this execVM 'myscript.sqf'";

fired = "_this execVM 'otherscript.sqf'";

};

};

};

But my weapon is not a vehicle. In which part of the config do I have to put the eventhandler-part?

Thank you for your help!

BlackPixxel

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  

×