From Blue Mars Developer Guidebook
This is a callback in Entity Scripts
- called by the Sandbox Editor when it resets state, i.e. when a level is started with BlueMars>Switch to Preview Mode or CTRL-G and ended with ESC.
To facilitate development/prototyping/testing, it's often a good idea to have your OnInit callback call OnReset and place any level initialization there.
function MyObject:OnInit() self:OnReset() end function MyObject:OnReset() self:Activate(1) end