Objects
This is a list of object structures (types), their member values and member functions.
Character
- .ID
- :GetName
- :GetRealName
- :GetSteamID
- :GetGuildID
- :GetPosition
- :GetFeetPosition
- :GiveItem
- :Notify
- :ExecuteConsoleCommand
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
Inventory
Item
- :GetOwner
- :GetOwnerInventory
- :GetId
- :GetName
- :GetShortDesc
- :GetLongDesc
- :SetStackSize
- :CanUseItem
- :GetIntStat
- :SetIntStat
DatabaseConnection
WARNING
This object cannot be directly constructed! Use dbConnect to retrieve a valid instance.
TotAdminTool Actor
TotPuppet TotAdminTool
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