BEAKSBY 11 Posted August 28, 2014 Hi All, How do I pass _gun1 into the "Killed" EH? _gun1 = createVehicle [_vehType, _pos,[], 0, "CAN_COLLIDE"]; _newUnit addeventhandler ["killed",{sleep 0.2; _gun1 setVariable ["ReinforceStaticWeapon_addAction", TRUE, TRUE]; //HOW DO I PASS _gun1 into EH? _allowAddAction = _gun1 getVariable "ReinforceStaticWeapon_addAction"; hint format ["fn_StaticWeaponDrop \n _newUnit ""killed"" EH \n _allowAddAction: %1", _allowAddAction]; }]; Share this post Link to post Share on other sites
lappihuan 178 Posted August 29, 2014 just use a global variable: gun1 instead of _gun1 Share this post Link to post Share on other sites