Manual Weapons Allocation in LUA

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
SeaQueen
Posts: 1436
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

Manual Weapons Allocation in LUA

Post 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.
RoryAndersonCDT
Posts: 1828
Joined: Mon Jun 15, 2009 11:45 pm

RE: Manual Weapons Allocation in LUA

Post by RoryAndersonCDT »

ManualWeaponAlloc should be a string "ManualWeaponAlloc" or 1
Command Dev Team
Technical Lead
User avatar
SeaQueen
Posts: 1436
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

RE: Manual Weapons Allocation in LUA

Post by SeaQueen »

I was left thinking ManualWeaponAlloc was a constant with a value equal to 1. Thank you!
Post Reply

Return to “Lua Legion”