Jump to content
Sign in to follow this  
RonnieJ

Cant parse object reference through execVM?

Recommended Posts

Hey guys im trying the following:

[some code]

_heli = createVehicle ["Mi24_V", _pos, [], 0, "FLY"];

[some more code]

_wp2 setWaypointStatements ["true","[_heli] execVM ""spawn_heli_vehicle.sqf"""];

But when trying to use the

_heli = _this select 0;

in the spawn_heli_vehicle.sqf the object reference dosent seem to work :confused:

Share this post


Link to post
Share on other sites

Because when the WP is completed it looks for variable _heli from the main scope (where trigger etc variable stuff is, aka not any script). It will not have any knowledge of your creation script. Use a global variable or name the vehicle instead.

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
Sign in to follow this  

×