|
Baldi's Basics Plus Glue API
Modding API for Baldi's Basics Plus
|
High-level access to the current player instance and player-related settings. More...
Public Member Functions | |
| void | AddStamina (float value, bool limited=true) |
| Adds stamina to the player; limited controls whether addition respects caps. | |
| void | AddTimeScale (object timeScaleModifier) |
| Adds a time scale modifier object to the player. | |
| void | ClearGuilt () |
| Clears the player's guilt state. | |
| Component? | GetComponent (string className) |
| Retrieves a player component by class name. | |
| void | Refresh () |
| Refreshes internal cached references to the player. | |
| void | RemoveTimeScale (object timeScaleModifier) |
| Removes a previously added time scale modifier. | |
| void | Reverse () |
| Reverses the player's movement or facing state (game-specific). | |
| void | RuleBreak (string rule, float linger) |
| Triggers a rule break for the player with a linger time. | |
| void | RuleBreak (string rule, float linger, float sensitivity) |
| Triggers a rule break with an explicit sensitivity parameter. | |
| void | SetHidden (bool hidden) |
| Sets the player's hidden state. | |
| void | SetNametag (bool state) |
| Shows or hides the player's nametag. | |
| void | Teleport (Vector3 position) |
| Teleports the player to the specified position. | |
Properties | |
| float | BaseReach [get, set] |
| The base reach value before modifiers. | |
| Transform? | CameraBase [get] |
| Base transform used for the player camera. | |
| GameObject? | ClickedThisFrame [get] |
| The GameObject that was clicked this frame, if any. | |
| object? | CurrentClickable [get] |
| The current clickable object under the player's cursor, if any. | |
| bool | Disobeying [get] |
| Whether the player is currently disobeying rules. | |
| BBPEntity | Entity [get] |
| The player entity wrapper. | |
| object? | EnvironmentController [get] |
| Low-level controller managing environment interactions for the player. | |
| bool | Exists [get] |
| Whether a player component currently exists in the game context. | |
| float | FrameVelocity [get] |
| Velocity recorded during the current frame. | |
| GameObject? | GameObject [get] |
| The Unity GameObject for the player, if present. | |
| float | GuiltSensitivity [get] |
| The player's guilt sensitivity multiplier. | |
| float | Height [get, set] |
| The player's collider height used by movement logic. | |
| bool | Invincible [get, set] |
| Gets or sets whether the player is invincible. | |
| bool | Invisible [get] |
| Whether the player is invisible. | |
| object? | ItemManager [get] |
| Internal item manager reference. | |
| float | MaxHideableLightLevel [get] |
| Maximum light level below which the player can hide. | |
| object? | Movement [get] |
| Shortcut reference to the movement controller (same as PlayerMovement). | |
| BBPEntity | MovementEntity [get] |
| The entity wrapper corresponding to the movement controller. | |
| object? | PlayerClick [get] |
| Player click/input helper object. | |
| object? | PlayerMovement [get] |
| Low-level player movement controller object. | |
| int | PlayerNumber [get, set] |
| The numeric player index used by the game. | |
| float | PlayerTimeScale [get] |
| The player's time scale modifier. | |
| Vector3 | Position [get, set] |
| World position of the player. | |
| Component? | Raw [get] |
| The raw Unity Component representing the player, if available. | |
| float | Reach [get] |
| Current effective interaction reach distance. | |
| float | RealVelocity [get] |
| Current real velocity reported by the movement controller. | |
| bool | Reversed [get, set] |
| Whether the player is reversed (game-specific meaning). | |
| Quaternion | Rotation [get, set] |
| The player's rotation. | |
| string | RuleBreakText [get, set] |
| Text describing the player's last rule break. | |
| float | RunSpeed [get, set] |
| Movement run speed value. | |
| bool | SeesClickable [get] |
| Whether the player currently sees a clickable object. | |
| float | Stamina [get, set] |
| Current stamina value. | |
| float | StaminaDrop [get, set] |
| Rate at which stamina drops while running. | |
| float | StaminaMax [get] |
| Maximum stamina available to the player. | |
| float | StaminaRise [get, set] |
| Rate at which stamina recovers. | |
| bool | Tagged [get] |
| Whether the player is currently tagged. | |
| Transform? | Transform [get] |
| The Unity Transform of the player, if present. | |
| float | WalkSpeed [get, set] |
| Movement walk speed value. | |
High-level access to the current player instance and player-related settings.
| void BBPGlue.API.BBPPlayer.AddStamina | ( | float | value, |
| bool | limited = true ) |
Adds stamina to the player; limited controls whether addition respects caps.
| value | Amount of stamina to add. |
| limited | Whether addition should respect stamina caps. |
| void BBPGlue.API.BBPPlayer.AddTimeScale | ( | object | timeScaleModifier | ) |
Adds a time scale modifier object to the player.
| timeScaleModifier | Modifier object understood by the game. |
| void BBPGlue.API.BBPPlayer.ClearGuilt | ( | ) |
Clears the player's guilt state.
| Component? BBPGlue.API.BBPPlayer.GetComponent | ( | string | className | ) |
Retrieves a player component by class name.
| className | The fully-qualified class name to look up. |
| void BBPGlue.API.BBPPlayer.Refresh | ( | ) |
Refreshes internal cached references to the player.
| void BBPGlue.API.BBPPlayer.RemoveTimeScale | ( | object | timeScaleModifier | ) |
Removes a previously added time scale modifier.
| timeScaleModifier | Modifier object to remove. |
| void BBPGlue.API.BBPPlayer.Reverse | ( | ) |
Reverses the player's movement or facing state (game-specific).
| void BBPGlue.API.BBPPlayer.RuleBreak | ( | string | rule, |
| float | linger ) |
Triggers a rule break for the player with a linger time.
| rule | Identifier of the rule broken. |
| linger | How long the rule break lingers. |
| void BBPGlue.API.BBPPlayer.RuleBreak | ( | string | rule, |
| float | linger, | ||
| float | sensitivity ) |
Triggers a rule break with an explicit sensitivity parameter.
| rule | Identifier of the rule broken. |
| linger | How long the rule break lingers. |
| sensitivity | Guilt sensitivity override. |
| void BBPGlue.API.BBPPlayer.SetHidden | ( | bool | hidden | ) |
Sets the player's hidden state.
| hidden | True to hide the player; false to show. |
| void BBPGlue.API.BBPPlayer.SetNametag | ( | bool | state | ) |
Shows or hides the player's nametag.
| state | True to show the nametag; false to hide it. |
| void BBPGlue.API.BBPPlayer.Teleport | ( | Vector3 | position | ) |
Teleports the player to the specified position.
| position | Destination position. |
|
getset |
The base reach value before modifiers.
|
get |
Base transform used for the player camera.
|
get |
The GameObject that was clicked this frame, if any.
|
get |
The current clickable object under the player's cursor, if any.
|
get |
Whether the player is currently disobeying rules.
|
get |
The player entity wrapper.
|
get |
Low-level controller managing environment interactions for the player.
|
get |
Whether a player component currently exists in the game context.
|
get |
Velocity recorded during the current frame.
|
get |
The Unity GameObject for the player, if present.
|
get |
The player's guilt sensitivity multiplier.
|
getset |
The player's collider height used by movement logic.
|
getset |
Gets or sets whether the player is invincible.
|
get |
Whether the player is invisible.
|
get |
Internal item manager reference.
|
get |
Maximum light level below which the player can hide.
|
get |
Shortcut reference to the movement controller (same as PlayerMovement).
|
get |
The entity wrapper corresponding to the movement controller.
|
get |
Player click/input helper object.
|
get |
Low-level player movement controller object.
|
getset |
The numeric player index used by the game.
|
get |
The player's time scale modifier.
|
getset |
World position of the player.
Setting moves the player's transform.
|
get |
The raw Unity Component representing the player, if available.
|
get |
Current effective interaction reach distance.
|
get |
Current real velocity reported by the movement controller.
|
getset |
Whether the player is reversed (game-specific meaning).
|
getset |
The player's rotation.
Setting updates the transform's rotation.
|
getset |
Text describing the player's last rule break.
|
getset |
Movement run speed value.
|
get |
Whether the player currently sees a clickable object.
|
getset |
Current stamina value.
|
getset |
Rate at which stamina drops while running.
|
get |
Maximum stamina available to the player.
|
getset |
Rate at which stamina recovers.
|
get |
Whether the player is currently tagged.
|
get |
The Unity Transform of the player, if present.
|
getset |
Movement walk speed value.