self:set_mass
Client
Sets the mass of the vehicle body
Syntax
local status = self:set_mass(
mass
)Parameters
| Type | Name | Description |
|---|---|---|
float | mass | Mass to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.vehicle.create()
entity:set_mass(1200)