Special Types
Helper functions which let you construct internal data types.
Constructors
NewObject
NewObject(typeName: string) -> GameType
string) -> GameTypeobj = NewObject("gameObject")
puppet = NewObject("PlayerPuppet")
vec2 = NewObject("Vector2")
vec3 = NewObject("Vector3")
matrix = NewObject("Matrix")
world_transform = NewObject("WorldTransform")ToVector3
ToVector3(values: table<x: float, y: float, z: float>) -> Vector3
table<x: float, y: float, z: float>) -> Vector3position = ToVector3{x=-1788, y=-450, z=7.75}ToVector4
ToVector4(values: table<x: float, y: float, z: float, w: float>) -> Vector4
table<x: float, y: float, z: float, w: float>) -> Vector4ToEulerAngles
ToEulerAngles(angles: table<roll: float, pitch: float, yaw: float>) -> EulerAngles
table<roll: float, pitch: float, yaw: float>) -> EulerAnglesToQuaternion
ToQuaternion(values: table<i: float, j: float, k: float, r: float>) -> Quaternion
table<i: float, j: float, k: float, r: float>) -> QuaternionToCName
ToCName(hash: table<hash_hi: uint32, hash_lo: uint32>) -> CName
table<hash_hi: uint32, hash_lo: uint32>) -> CNameToTweakDBID
ToTweakDBID(data: table<hash: uint32, length: uint8>) -> TweakDBID
table<hash: uint32, length: uint8>) -> TweakDBIDToItemID
ToItemID(data: table<id: TweakDBID, rng_seed: uint32, unknown: uint16, maybe_type: uint8>) -> ItemID
table<id: TweakDBID, rng_seed: uint32, unknown: uint16, maybe_type: uint8>) -> ItemIDLast updated