mdraimund 1 Posted August 25, 2012 Hello, So I'm running into a bit of a weird snag. I've made some custom units for my unit to use and in the config i put an eventhandler to run a script that adds and loads up a backpack. This is the code I have been using in my CFGVehicles: class EventHandlers { init = "[_this select 0] execVM '\75rr_us_modz\scripts\ruck_load.sqf'"; }; The problem with this is that it seems to run twice for some units in multiplayer and duplicate the backpack and gear. Like some sort of locality issue. To remedy this I started looking into the XEH and thought that the initpost function sounded like just what I needed. So I tried replacing it with this: class Extended_InitPost_EventHandlers { class CAManBase { SLX_MyAddon_init="[_this select 0] execVM '\75rr_us_modz\scripts\ruck_load.sqf'"; }; }; This didn't work. I don't have the XEH standalone, maybe that's an issue since I run it off of CBA. So first of all, is it possible that the initpost function will do what I need it to do? And secondly, what am i doing wrong? I'd like to thank everyone in advance for their insightful answers. Share this post Link to post Share on other sites
[frl]myke 15 Posted August 25, 2012 The XEH's are meant to be a separate baseclass and not part of cfgVehicles. Share this post Link to post Share on other sites
mdraimund 1 Posted August 25, 2012 (edited) Ah yes, thank you. The wiki said something about it needing to fire on manbase but I only need it on my custom units. Will it let me do it just for one vehicleclass? Disregard. I got it doing what I want it to now. Edited August 25, 2012 by Mdraimund Share this post Link to post Share on other sites