cancel
Showing results for 
Search instead for 
Did you mean: 

v214 typescript updates

Shards632
Mentor
- `Player.sprintMultiplier` property allows controlling how much faster sprinting is than walking
  - default is 1.4
  - range is 1 - 10
  - value of 1 disables sprinting
- `CodeBlockEvents` collection of events has comments describing which are broadcast, and whether from the server or the client.
  - some of this info seems incorrect?
    - says you "can't" send built in events, but pretty sure you can, if you want to
    - says that OnPlayerEnter/ExitInteractionMode is broadcast on the client, but pretty sure it is broadcast on the server, too.
- `Player.disableSystemControls()` now takes an optional boolean `tapAnywhereDisabled`
  - defaults to `false` for legacy behavior
  - not _exactly_ clear what it's for. I have noticed that `disableSystemControls()` previously did not disable _all_ system controls.
- new `AvatarPoseGizmo`
  - `player` property support putting a player in a pose gizmo (e.g. seat) and booting them out
  - `exitAllowed` property supports locking them in the seat
  - `setCanUseForPlayers()` controls which players can use the pose gizmo (e.g. 'reserved seating')
    - `resetCanUseForPlayers()` removes per player restrictions
    - `canPlayerUse()` tells you if a player is allowed to the gizmo
  - new `OnPlayerEnterAvatarPoseGizmo` and `OnPlayerExitAvatarPoseGizmo` to find out when players sit down and get back up
 
_**NOTE**_: the behavior change to `OnPlayerEnterFocusedInteraction` and `OnPlayerExitFocusedInteraction` from v213 was reverted. It now once again acts the way it did in v212 (i.e. not tied to zooming in/out of Custom UI)
0 REPLIES 0