Page 1 of 1

Manual Weapons Allocation in LUA

Posted: Mon Aug 05, 2019 9:23 pm
by SeaQueen
I did this:

Code: Select all

 ScenEdit_AttackContact(attacker.guid, tgtContactId, {mode=ManualWeaponAlloc, mount=m, weapon=wpnId, qty=1  })
 
It did this:

Code: Select all

 ScenEdit_AttackContact 0 : ,Invalid targeting behaviour
 
I'm sad now.

RE: Manual Weapons Allocation in LUA

Posted: Mon Aug 05, 2019 10:37 pm
by RoryAndersonCDT
ManualWeaponAlloc should be a string "ManualWeaponAlloc" or 1

RE: Manual Weapons Allocation in LUA

Posted: Tue Aug 06, 2019 10:02 am
by SeaQueen
I was left thinking ManualWeaponAlloc was a constant with a value equal to 1. Thank you!