UnitClass.server_onRefresh

Called if the Lua script attached to the object is modified while the game is running.

Kind: Callback

Environments: Game

Game

Callback side: Server

UnitClass:server_onRefresh(  )

Open the full Game reference

Note: This event requires Scrap Mechanic to be running with the '-dev' flag. This will allow scripts to automatically refresh upon changes.

Parameters:

Name Type Description
self table The class instance.