Summary
Hooks
Called after Catwork has loaded the map entities; restores the saved union lights.
LoadUnionLights()server
Spawns the union lights saved for the current map.
PostSaveData()server
Called after data is saved; saves the union lights.
SaveUnionLights()server
Saves every
cw_unionlight on the map to the schema data.Hooks
Implements hook ClockworkInitPostEntity
Called after Catwork has loaded the map entities; restores the saved union lights.
Spawns the union lights saved for the current map.
Restores each light's owner, position and angles, and freezes the ones that were frozen when saved. Entries without a position or angles are skipped.
Implements hook PostSaveData
Called after data is saved; saves the union lights.
Saves every cw_unionlight on the map to the schema data.
Writes plugins/unionlights/<map> with each light's owner, position, angles and whether it
can move.