Page 1 of 1

Specific Unit Attacks Specific Unit

Posted: Wed Aug 19, 2020 6:12 pm
by Sybaris
I'm trying to get a couple aircraft (Backfire B's w/ AS-4's) in a flight to attack a specific ship LCC-19 Blue Ridge and tried to use this:

ScenEdit_AttackContact('Flight 3079','336', {mode='1', mount=0, weapon=1820, qty=2})

Not working

Is it possible to do this and I'm just LUA ignorant?

Any help much appreciated

RE: Specific Unit Attacks Specific Unit

Posted: Wed Aug 19, 2020 9:16 pm
by KnightHawk75
Maybe don't include mount=0 if the weapon in question is on the aircraft loadout to be used.

from docs:
Note: The function will use the weapon from the aircraft loadout if applicable when no mount is supplied.

If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.

RE: Specific Unit Attacks Specific Unit

Posted: Fri Aug 21, 2020 8:52 am
by Sybaris
ORIGINAL: KnightHawk75


If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.

That worked