Cigs4 18 Posted July 26, 2019 Hello guys! I'm trying to load a bodybag in a specific vehicle, a plane in this case, but I'm having some trouble with this code: Quote ["ace_cargoLoaded", {if (typeOf _item == "ACE_bodyBagObject" && _vehicle = cargoplane) then {bagInPlane = true; publicVariable "bagInPlane"}}] call CBA_fnc_addEventHandler; "cargoplane" is the name of the vehicle. It shows me an error "Generic error in expression". And I can't identify it. Anybody can please, help me? Thanks! Share this post Link to post Share on other sites
Dedmen 2588 Posted July 26, 2019 59 minutes ago, Cigs4 said: && _vehicle = cargoplane There it is. Share this post Link to post Share on other sites
Cigs4 18 Posted July 26, 2019 Thanks, Dedmen, but I'm not shure how to do this, then. Can you help and show me how to do it properly? Thanks again. Share this post Link to post Share on other sites
Mr H. 400 Posted July 27, 2019 = defines a variable. == checks that something is equal to something SO replace = by == Share this post Link to post Share on other sites
Cigs4 18 Posted July 27, 2019 Thank you very much, Mr H. For your time and patience.👍 Share this post Link to post Share on other sites