Arma 3
Good Raptor Mar 23, 2023 @ 7:23pm
How to make AI shoot at invisible object?
Is there any thing that makes AI shoot at "nothing", for instance an invisible plane that is with a faction and the enemy faction will fire at it?

I'd like to try and make ambient anti-air fire for the start of one of my missions
< >
Showing 1-4 of 4 comments
Namdaets Mar 23, 2023 @ 7:35pm 
Might be able to create an invisible unit/vehicle, make it invincible, disable its AI, etc., and then use the `doFire` command in a script (the documentation explicitly states this only works on units/vehicles and not objects):

https://community.bistudio.com/wiki/doFire
https://community.bistudio.com/wiki/disableAI

For some quick and dirty ambient AA fire, you could just put down some Tracer modules in the Effects section, although they are small arms tracers and not an AA cannon.
Last edited by Namdaets; Mar 23, 2023 @ 7:36pm
Good Raptor Mar 23, 2023 @ 7:37pm 
Thank you for the quick response! I'll give both methods a shot
Run this code in the debug console in EDEN and this will spawn an invisible target, place this in the air and the AA should shoot at it.

create3DENEntity ["Object", "O_TargetSoldier", screenToWorld [0.5,0.5]];
Namdaets Mar 23, 2023 @ 9:43pm 
Nice. Useful to learn these objects exist. Looks like there are some other invisible things for artillery and laser targeting too, which might be nifty for some things as well.

Also,

BLUFOR: B_TargetSoldier
OPFOR: O_TargetSoldier
Independent: I_TargetSoldier

https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_WEST
https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_EAST
https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_GUER
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Mar 23, 2023 @ 7:23pm
Posts: 4