Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Server Veloce

Vehicle:SetDoor

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

Non ancora tradotto

Sintassi

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

Parametri

Nome Tipo Predefinito Descrizione
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)