Page 1 of 1

manual attack

Posted: Mon Oct 11, 2021 6:29 pm
by orca
I'm trying to initiate a manual attack but get an error message. It's likely a very simple mistake but I can't figure what I'm doing wrong. Does anyone know how to correct the script?

my script:
ScenEdit_AttackContact(guid='2QQSQX-0HMCAJOPHJF4L', guid='2QQSQX-0HMCAJOQ9T8GB',{mode='2', mount=3263, weapon=3716, qty=8})


my error: which corresponds the the above script line
ERROR: [string "Console"]:5: ')' expected near '='


thanks

RE: manual attack

Posted: Mon Oct 11, 2021 7:41 pm
by KnightHawk75
You've specified table format in the first two params when they're just strings for the attackerunitguid and contactguids.

ScenEdit_AttackContact('2QQSQX-AttackerGuidF4L', '2QQSQX-contacguidT8GB', {mode='2', mount=3263, weapon=3716, qty=8});