nk3nny / LambsDanger

AI enhancement mod for Arma 3
Other
105 stars 40 forks source link

Improvements to taskGarrison and taskCamp #414

Closed nk3nny closed 1 month ago

nk3nny commented 1 month ago

Adds garrisoned units that are placed outside will appear to look out from building Improves garrison behaviour when there are no indoor locations (fixes issue #413) Fixes units being teleported to building positions located in air Fixes taskCamp units sometimes throwing double animation resets Fixes taskCamp units failing to reset animations

-- Prefers using setVehiclePosition rather than setPos when placing units. While more expensive, taskGarrison and taskCamp are not run frequently. This neatly fixes many issues where units were spawned in the air (and fell to their deaths!)

With the new and improved eventhandlers makes resetting animations in taskCampReset is much more reliable. Therefore no need to run the function multiple times on all units.