RonnieJ 10 Posted July 25, 2010 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
shuko 45 Posted July 25, 2010 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
RonnieJ 10 Posted July 25, 2010 Roger shk... of course thats why :) thanks Share this post Link to post Share on other sites