v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
91
doc/lua/vehicle.md
Normal file
91
doc/lua/vehicle.md
Normal file
|
@ -0,0 +1,91 @@
|
|||
The vehicle table contains bindings specific to vehicles which are available in addition to their common tables.
|
||||
|
||||
---
|
||||
|
||||
#### `bool` vehicle.controlHeld(`String` loungeName, `String` controlName)
|
||||
|
||||
Returns `true` if the specified control is currently being held by an occupant of the specified lounge position and `false` otherwise.
|
||||
|
||||
---
|
||||
|
||||
#### `Vec2F` vehicle.aimPosition(`String` loungeName)
|
||||
|
||||
Returns the world aim position for the specified lounge position.
|
||||
|
||||
---
|
||||
|
||||
#### `EntityId` vehicle.entityLoungingIn(`String` loungeName)
|
||||
|
||||
Returns the entity id of the entity currently occupying the specified lounge position, or `nil` if the lounge position is unoccupied.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setLoungeEnabled(`String` loungeName, `bool` enabled)
|
||||
|
||||
Enables or disables the specified lounge position.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setLoungeOrientation(`String` loungeName, `String` orientation)
|
||||
|
||||
Sets the lounge orientation for the specified lounge position. Valid orientations are "sit", "stand" or "lay".
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setLoungeEmote(`String` loungeName, [`String` emote])
|
||||
|
||||
Sets the emote to be performed by entities occupying the specified lounge position, or clears it if no emote is specified.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setLoungeDance(`String` loungeName, [`String` dance])
|
||||
|
||||
Sets the dance to be performed by entities occupying the specified lounge position, or clears it if no dance is specified.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setLoungeStatusEffects(`String` loungeName, `JsonArray` statusEffects)
|
||||
|
||||
Sets the list of status effects to be applied to entities occupying the specified lounge position. To clear the effects, set an empty list.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setPersistent(`bool` persistent)
|
||||
|
||||
Sets whether the vehicle is persistent, i.e. whether it will be stored when the world is unloaded and reloaded.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setInteractive(`bool` interactive)
|
||||
|
||||
Sets whether the vehicle is currently interactive.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setDamageTeam(`DamageTeam` team)
|
||||
|
||||
Sets the vehicle's current damage team type and number.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setMovingCollisionEnabled(`String` collisionName, `bool` enabled)
|
||||
|
||||
Enables or disables the specified collision region.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setForceRegionEnabled(`String` regionName, `bool` enabled)
|
||||
|
||||
Enables or disables the specified force region.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.setDamageSourceEnabled(`String` damageSourceName, `bool` enabled)
|
||||
|
||||
Enables or disables the specified damage source.
|
||||
|
||||
---
|
||||
|
||||
#### `void` vehicle.destroy()
|
||||
|
||||
Destroys the vehicle.
|
Loading…
Add table
Add a link
Reference in a new issue