self:set_platform_on_leave
Client
Sets the platform-leave velocity behavior of the character body
Syntax
local status = self:set_platform_on_leave(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
int | mode | Platform-on-leave enum value — refer to physics.character.platform_on_leave |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_platform_on_leave(physics.character.platform_on_leave.ADD_VELOCITY)