Jump to content
Sign in to follow this  
yoannis1995

Create flying drone

Recommended Posts

Hi,

I'm trying to create a flying drone with a script but I can't get it to work... If I use the command CreateVehicle the drone appears empty and crashes and if I use the function SpawnVehicle like this:

[getMarkerPos uav1, 180, "B_UAV_02_F", WEST] call bis_fnc_spawnvehicle;  

I get an error message ("0 elements provided, 3 expected...") and it doesn't work... How can I fix that ?

Share this post


Link to post
Share on other sites

It's been 2 months since I found this problem. Can't remember everything I did, but I remember the solution: createVehicle + createVehicleCrew. This way you make a flying drone which will be autonomous on waypoints, or you may join the crew to another existing group...

Share this post


Link to post
Share on other sites

there is an error

getMarkerPos "uav1"

also what barbolani is saying is this

_uav = "B_UAV_02_F" createVehicle (getMarkerPos "uav1"); createVehicleCrew _uav;

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  

×