Objects
This is a list of object structures (types), their member values and member functions.
Character
- .ID
- :IsValid
- :GetName
- :GetRealName
- :GetSteamID
- :GetGuildID
- :GetGuild
- :GetPosition
- :GetFeetPosition
- :GetRotation
- :GetHeight
- :GetHalfHeight
- :GiveItem
- :Notify
- :ExecuteConsoleCommand
- :CallComponentFunction
- :IsStanding
- :IsWalking
- :IsRiding
- :IsArmed
- :Freeze
- :PlayVoice
- :PlayAnimation
- :StopAnimation
WARNING
This object cannot be directly constructed! Use references obtained from events or functions.
CharacterSheet
- .name
- .skills
- .skillsAllocated
- .skillsTotal
- .stats
- .statsCurrent
- .statsMax
- .perksActive
- .perksCategories
- .perksAssigned
- .statuses
- .buffs
- .zones
- .runes
WARNING
This object cannot be directly constructed! Use RPR.GetSheet to retrieve a valid instance.
ReduxAbility
- .id
- .name
- .category
- .range
WARNING
This object cannot be directly constructed! Use RPR.GetAbilities to retrieve a valid instance.
GUID
- .A
- .B
- .C
- .D
TIP
This object can be directly constructed using GUID() for a new random GUID.
Specific GUID can also be re-created using GUID(guidString) (A-B-C-D format) or using GUID(A,B,C,D) with all parts being integers. Try to prefer the former over the latter.
To convert GUID into a string format accepted by the constructor, use tostring(myGuid)
Color
- .R
- .G
- .B
- .A
TIP
This object can be directly constructed using Color(R,G,B,A) or Color(R,G,B) (non-transparent), all values have to be either 0-255 (int) or 0-1 (float).
You can also use single argument Lua hex integer like this: Color(0xFFCC00)
Vector
TIP
This object can be directly constructed using Vector() for an empty vector, or Vector(x,y,z) for an actual representation of position in 3D space. It can also be returned by various functions.
Rotator
- .pitch
- .yaw
- .roll
TIP
Rotators can be constructed in the same way as Vectors.
Actor
- .owner
- :IsValid
- :GetActorName
- :GetClassName
- :GetPathName
- :GetLocation
- :GetRotation
- :SetLocation
- :SetRotation
- :GetFeetLocation
- :SetLocationAndRotation
- :Teleport
- :GetDistanceTo
- :GetHorizontalDistanceTo
- :GetVerticalDistanceTo
- :GetVelocity
- :GetForwardVector
- :GetUpVector
- :HasTag
- :IsOverlappingActor
- :GetEyesViewPoint
- :Destroy
- :CallFunction
Inventory
- :GetAllItems
- :GetItemByIndex
- :GetItemById
- :HasItem
- :CountItems
- :SpawnItem
- :DeleteItem
- :MoveItems
- :GetItemIndex
- :FindItemById
- :DropItem
Item
- :GetOwner
- :GetOwnerInventory
- :GetId
- :GetName
- :GetShortDesc
- :GetLongDesc
- :SetStackSize
- :CanUseItem
- :GetIntStat
- :SetIntStat
- :GetFloatStat
- :SetFloatStat
- :ModifyDurability
- :SetDurability
- :IsBroken
- :DeleteItem
Guild
HitResult
- .actor
- .distance
- .location
- .normal
DatabaseConnection
WARNING
This object cannot be directly constructed! Use dbConnect to retrieve a valid instance.
TotZone Actor
- :GetUID
- :GetName
- :SetName
- :GetParam
- :SetParam
- :GetActionModule
- :SetActionModule
- :SetRatchetEvent
- :TriggerEvent
- :IsBox
- :IsSphere
WARNING
This object cannot be directly constructed! Use TotAdmin.GetZone to retrieve a valid instance.
TotPuppet Actor
WARNING
This object cannot be directly constructed! Use TotAdmin.GetPuppet to retrieve a valid instance.
TotPuppetTag
- .guid
- .name
- .color
TotMapMarker
- .guid
- .name
- .x
- .y
- .icon
- .iconName
KSVolume Actor
TIP
This object can be directly constructed using KSVolume constructor.