nanos world API Reference Unofficial documentation
Function Network authority Fast

Actor:SetLifeSpan

Sets the time (in seconds) before this Actor is destroyed. After this time has passed, the actor will be automatically destroyed.

Syntax

Lua
my_actor:SetLifeSpan(seconds)

Parameters

Name Type Default Description
seconds float Seconds before being destroyed