Jump to content
Cigs4

Ace cargo and vehicles problem

Recommended Posts

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
59 minutes ago, Cigs4 said:

&& _vehicle = cargoplane

There it is.

Share this post


Link to post
Share on other sites

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

= defines a variable.
== checks that something is equal to something
SO replace = by ==

Share this post


Link to post
Share on other sites

Thank you very much, Mr H.
 

For your time and patience.

👍

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

×