Jump to content
Ben1775

Spawning a controllable UAV

Recommended Posts

Thanks in advance for reading my post!

 

Goal:  Spawn a Greyhawk that can be controlled by a blue force player with a NATO UAV terminal

Error:  None, but UAV terminal does not allow selection of drone from pull down.  Spawned drone shows as blue.

Code: 

_Host_Group = group Host_Unit;  // The controlling unit, we'll spawn it near them
_New_Position = [position Host_Unit,1,20,5,1,1.5,0] call BIS_fnc_findSafePos;
_New_Unit = [_New_Position, 0, "B_UAV_02_F", _Host_Group] call BIS_fnc_spawnVehicle;

Effect:  Spawns a drone, it shows as blue.
Troubleshooting:  I've added drones through Zeus, they also appear as blue, but are select-able in the pull-down and can be controlled.

 

Thanks again for your help!

 

Ben

Share this post


Link to post
Share on other sites

Okay, found my error, UAV shouldn't be in Host_Unit group, this change fixed it:

 

_New_Unit = [_New_Position, 0, "B_UAV_02_F", west] call BIS_fnc_spawnVehicle;

 

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

×