UnitGuarding(unitID,unitDefID,team,guardedUnitID)

UnitGuarding(unitID,unitDefID,team,guardedUnitID)

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

UnitGuarding(unitID,unitDefID,team,guardedUnitID)

Post by Argh »

Lua callin. Would activate when a Unit starts Guarding something. Could then be used to trigger various useful Lua, depending on the behaviors needed.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: UnitGuarding(unitID,unitDefID,team,guardedUnitID)

Post by lurker »

We just need a generic call whenever a command is executed, in the vein of allow and fallback.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: UnitGuarding(unitID,unitDefID,team,guardedUnitID)

Post by Argh »

The problem's specific to Guarding. There is code that causes Units to be at a certain distance, and basically they halt at that point, but they aren't Idle, they're just passively Guarding. If had a way to see when that occurs (and if the distance could be played with) then various behaviors become possible. Guard is one of those things that's still very much engine-side atm.
Post Reply

Return to “Feature Requests”