nanos world API Reference Unofficial documentation
Function Server Fast

Vehicle:SetDoor

Adds a Door at offset_location from root which will pose the Character at seat_location with seat_rotation rotation.

Syntax

Lua
my_vehicle:SetDoor(seat_index, offset_location, seat_location, seat_rotation, trigger_radius, leave_lateral_offset)

Parameters

Name Type Default Description
seat_index integer — —
offset_location Vector — —
seat_location Vector — —
seat_rotation Rotator — —
trigger_radius integer — —
leave_lateral_offset integer — It's where the Character will be ejected when leaving it (e.g. -150 for left door or 150 for right door)