πLocal Player
Contains all functions from Local player namespace.
-- Returns the index of the local player entity.
-- The index is calculated based on the player's index within the pmove structure,
-- which is incremented by 1 before being returned to match the indexing convention used by Lua.
-- Returns:
-- An integer representing the index of the local player entity.
LocalPlayer.GetIndex()-- Retrieves the team of the local player.
-- Returns:
-- An integer representing the team of the local player.
LocalPlayer.GetTeam()-- Get the current flags of the local player, which represents its current state.
-- Returns:
-- An integer value that represents the current flags of the local player. These flags can be used to determine if the player is on the ground, underwater, jumping, etc.
LocalPlayer.GetFlags()-- Checks whether a player has a specific flag set or not.
-- Parameters:
-- flag: an integer value representing the flag to be checked.
-- Returns:
-- True if the flag is set, false otherwise.
LocalPlayer.CheckFlag(flag)-- Returns the button bit flags of the player's current input command.
-- Each bit represents a different button.
-- Returns:
-- An integer value representing the player's button bit flags.
LocalPlayer.GetButtons()Last updated