Game
object and any game types before onInit
.GetMod()
before onInit
.Observe()
/ Override()
handlers so they accept self
as the first param. Previously, some observers lacked the self
param:Game.GetPlayer()
in onUpdate
will not cause the issue.GameSession
/ GameUI
libs:GetSingleton()
. For example, Game.GetTeleportationFacility()
instead of GetSingleton('gameTeleportationFacility')
.entEntityId
, PlayerPuppet
.gamedataStatType.BaseDamage
, gameGameVersion.Current
.WeaponObject
instead of gameweaponObject
..new()
constructor. For example, MappinData.new()
.EntityID.new({ hash = 12345 })
.ScriptedPuppet.IsDefeated(npc)
.vec4:Length()
instead of Vector4.Length(vec4)
.StatusEffectHelper.HasStatusEffect(target, gamedataStatusEffectType.Overheat)
.Variant
type support. ToVariant()
and FromVariant()
are only applicable to classes.