Utility methods created to help with various common scenarios
Burns a player ragdoll, shows scorch marks, and automatically destroys the ragdoll unless it's been extinguished by water.
Realm: Server
Added in: 1.9.1
Parameters:
prop_ragdoll
to set on firetrue
)
Returns whether a role can be spawned either naturally at the start of a round or artificially.
Realm: Client and Server
Added in: 1.9.5
Parameters:
Returns whether a role can be spawned artificially. (i.e. Spawned in a way other than naturally spawning when the role is enabled.)
Realm: Client and Server
Added in: 1.9.5
Parameters:
Returns whether a role can be spawned naturally. (i.e. Spawned in at the start of the round if they are enabled or used in a role pack.)
Realm: Client and Server
Added in: 2.0.7
Parameters:
Executes a file at the given path, relative to the root game location.
Realm: Server
Added in: 1.6.7
Parameters:
false
)
Turns a table of items into a string with commas and grammar.
Realm: Client and Server
Added in: 2.1.17
Parameters:
Gets the path to a role's icon of the given type.
Realm: Client and Server
Added in: 2.0.7
Parameters:
{typ}_
when the path is built (Optional, defaults to the {role_str}
value)