Skip to content

Member function calls

Compare
Choose a tag to compare
@maximegmd maximegmd released this 21 Dec 16:59
· 1299 commits to master since this release

Let's you do crazy stuff like

player = CreateHandle("PlayerPuppet", Game.GetPlayer())
print(player.IsNaked())
-- the command below kills you
player.OnDied()

Or change the time

gameTime = CreateSingletonHandle("gameTimeSystem")
gameTime.SetGameTimeByHMS(12, 30, 0) -- 12h30m0s
print(gameTime.GetGameTime()) -- prints time in seconds