Jump to content
Sign in to follow this  
Aebian

How to make O_UAV_AI controllable?

Recommended Posts

I'm using this code:

[...]
oentities = creategroup east; 
auto1 = oentities createUnit ["O_UAV_AI", Position _tank, [], 0, "NONE"]; 
[...]

All works fine and my AI gets placed into the Chopper Gunner but I now wanna control them via UAV terminal.

Is that possible?

Share this post


Link to post
Share on other sites

Yes,

Make sure your unit is a UAV operator, or has a UAV terminal.

Share this post


Link to post
Share on other sites

Try this:

[color="#FF8040"]heli [color="#8B3E2F"][b]=[/b][/color] [color="#191970"][b]createVehicle[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"O_Heli_Attack_02_black_F"[/color][color="#8B3E2F"][b],[/b][/color] [color="#191970"][b]position[/b][/color] [color="#000000"]player[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b],[/b][/color] [color="#FF0000"]0[/color][color="#8B3E2F"][b],[/b][/color] [color="#7A7A7A"]"FLY"[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color]
heli [color="#191970"][b]selectWeaponTurret[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"gatling_30mm"[/color][color="#8B3E2F"][b],[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#FF0000"]0[/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color]
[color="#191970"][b]createVehicleCrew[/b][/color] heli[color="#8B3E2F"][b];[/b][/color] 
[color="#000000"]player[/color] [color="#191970"][b]action[/b][/color] [color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"SwitchToUAVGunner"[/color][color="#8B3E2F"][b],[/b][/color] heli[color="#8B3E2F"][b]][/b][/color][color="#8B3E2F"][b];[/b][/color][/color]

Made with KK's SQF to BBCode Converter

Share this post


Link to post
Share on other sites

@Ranwer:

I had that already its not working!

@KK:

Yes worked. But why its not working with a UAV Terminal? ^^

Share this post


Link to post
Share on other sites

@KK:

Yes worked. But why its not working with a UAV Terminal? ^^

Maybe because it is not a 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  

×