manual attack

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
orca
Posts: 545
Joined: Wed Nov 06, 2013 4:59 pm

manual attack

Post 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
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: manual attack

Post 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});
Post Reply

Return to “Lua Legion”