Hold Position and HoldFire Questions

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

Hold Position and HoldFire Questions

Post by jkgarner »

What does HoldPosition=1 do?
How about HoldFire=1?

The following code snippet is offered n the documentation for ScenEdit_SetUnit:

Code: Select all

ScenEdit_SetUnit({side="United States", unitname="USS Test", 
                   heading=0, HoldPosition=1, HoldFire=1,
                   Proficiency="Ace", Autodetectable="yes"}
What are the valid valued for these settings?

My guess, which seems to bear out in testing, is that HoldPosition=1 means stay put and defend your position, though I am not sure how this differs from simply not giving orders. Perhaps, they will not move off when attrited below funcitonal capability (generally 50% for ground units) when under a HOldPosition order, but move off if not. Maybe not.

Does the HoldFire setting interact with the Unit Doctrine, to prevent the unit firing? Is is a shortcut to setting the doctrine values? Can I say HoldFire=0?

Like I said, I have questions.

Anyone got answers?
Post Reply

Return to “Lua Legion”