Announcement

Collapse
No announcement yet.

Additions of functions related to the movement of players

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Additions of functions related to the movement of players

    Hello !

    Some features are missing in the proposed functions, I decided to make a suggestion as soon as possible because they seem to me relatively important for the creation of game mode or even mechanics.

    __________________________________________________ _

    SetPlayerMovementMode

    Description

    Sets the new player movement mode to player.

    Code:
    SetPlayerMovementMode(player, movementMode)
    Parameters
    • player
    The player identifier.
    • movementMode
    The movement mode to use.

    Return value

    This function returns nothing.

    __________________________________________________ _

    SetPlayerMovementSpeed

    Description

    Sets the new maximal speed of player.

    Code:
    SetPlayerMovementSpeed(player, movementSpeed)
    Parameters
    • player
    The player identifier.
    • movementSpeed
    The maximal value of movement that can be reach.

    Return value

    This function returns nothing.

    __________________________________________________ _

    LockPlayerMovementMode

    Description

    Force player to use a movement Mode and can't switch with other ones.

    Code:
    LockPlayerMovementMode(player, movementMode)
    Parameters
    • player
    The player identifier.
    • movementMode
    Movement mode to set and lock.

    Return value

    This function returns nothing.

    __________________________________________________ _

    IsPlayerMovementModeLocked

    Description

    Determine if player has movement mode locked.

    Code:
    IsPlayerMovementModeLocked(player)
    Parameters
    • player
    The player identifier.

    Return value

    True if movement mode of player is locked, false if not.

    #2
    I definitely agree with adding some of these, if WalkSpeed currently isn't a thing then those kinds of functions would also be super useful

    Comment

    Working...
    X