lolman1c 0 Posted May 18, 2020 Hello, I was wondering if someone could help me. In the Config.cpp i'm trying have an inventory item give the user an action that triggers a sqf script. Anyone got any clue on how to do this? Edit: I looked at Addaction but not sure how to add it to Config. Edit 2: I would also like to make a custom grenade (which I know how to do) activate a supply drop. I know how to sqf the supply drop but unsure how I can get the custom grenade to activate the sqf when thrown. Share this post Link to post Share on other sites
SpaceHippo 26 Posted May 20, 2020 For the grenade you could try using a fired event handler class in the cfgweapons fooMyGrenadebar_throw weapon entry I've only ever used the 'init' event handler in cfg vehicle entries but a 'fired' event handler should work to execute a script when you 'fire' the grenade weapon 1 Share this post Link to post Share on other sites
Harzach 2507 Posted May 20, 2020 Regarding the supply drop, it's a common enough thing, and @SpaceHippo is right on with using the Fired EH in cfgWeapons - the most recent discussion I recall is here (Dedmen suggests cfgFunctions): 1 Share this post Link to post Share on other sites