-
Notifications
You must be signed in to change notification settings - Fork 0
API Functions
List of all other available API functions. Previous pages contain the more important ones.
Returns whether or not the mod/pack has been registered.
-
name: Name of the mod/pack.
Returns whether or not the character has been registered.
-
name: Name of the character -
isTainted: Set to true if your character is a Tainted version of an existing character
Returns whether or not this object ID has been assigned to any character.
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum.
Sets a "display name" for the item, changing how it will be shown in Mod Config Menu.
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
itemName: The new name desired for the object. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum.
UniqueItemsAPI.GetObjectData(integer objectID, UniqueObjectType objectType, PlayerType? playerType): UniqueObjectData
Returns a table of data for a Unique Object. If PlayerType is provided, returns UniqueObjectPlayerData instead.
- SelectedModIndex
integer: Current index used forAllMods. Used exclusively for Mod Config Menu. If 0, it's disabled. If -1, it's randomized. - SelectedPlayerIndex
integer: Current index used forAllPlayers. Used exclusively for Mod Config Menu. - AllMods
string[]: A table of strings containing the names of all registered mods. - AllPlayers
UniqueObjectPlayerData[]: A table of all player data for this Unique Object, indexed byPlayerType - Name
string: Name of the Unique Object. Used for save data. - DisplayName
string: Name of the Unique Object as it appears inside Mod Config Menu.
- SelectedModIndex
integer: Current index used forModData. If 0, it's disabled. If -1, it's randomized. - TempDisable
boolean: If true, will entirely disable this player for this Unique Object. Only toggle-able from UniqueItemsAPI.SetIsCharacterObjectDisabled. - ModData
UniqueObjectModData[]. Table that contains the params used inAssignUniqueObjectin addition toModName.
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum. -
PlayerType: Optional. The PlayerType of the character for this Unique Object.
UniqueItemsAPI.GetObjectParams(integer objectID, Entity | PlayerType entityOrPlayerType, UniqueObjectType objectType, boolean? noModifier)
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
entityOrPlayerType: Optional. Either the PlayerType of the character for this Unique Object, or any entity. The API will attempt to fetch the player off of the entity. Will return nil if unsuccessful. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum. -
noModifier: If true, will return the params as-is without running any modifiers
UniqueItemsAPI.GetCurrentObjectMod(integer objectID, PlayerType playerType, UniqueObjectType objectType)
Returns the UniqueObjectModData associated with the provided arguments.
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
PlayerType: Optional. The PlayerType of the character for this Unique Object. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum.
Sets whether to temporarily disable the Unique Object for a player for the current game session.
-
objectID: The CollectibleType, FamilliarVariant, or KnifeVariant of the object. -
PlayerType: Optional. The PlayerType of the character for this Unique Object. -
bool: True to disable, false to use current settings. -
objectType: Uses theUniqueItemsAPI.ObjectTypeenum.
Returns whether or not this UniqueObjectPlayerData is disabled.
-
playerDataThe Unique Object data for a specific character.
Returns whether or not this UniqueObjectPlayerData is randomized.
-
playerDataThe Unique Object data for a specific character.