sm.unit.forceDestroy
Destroys a unit.
Kind: Function
Environments: Game
Game
sm.unit.forceDestroy( unit )
Availability: Server only
If the unit does not exist at the moment, it is removed from the save file. This will stop it from loading back into the game.
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |