Add guards/garrisoned units
Open, Needs TriagePublic

Description

Locations need a way to add single units or small groups to house positions and save and restore them reliably.
This needs to be included in the new unified location system.
Buildings needs to be cached on mission start.

NeoArmageddon created this object in space S1 Public.

A new function "GarrisonUnits" was added and is called by "InitGuardedLocations", so spawned camps can have units on building positions. Included in dev 1.9 already for motorpool and 3 com templates

Every building classname has to manually added and uses multiple nearobjects calls, so big performance hit and each new building type would increase it.

Probably needs to be worked into the unit caching the mission does (behaviour is untested so far)