CreateVehicle()

Syntax

Result = CreateVehicle(#Entity)
Description
Creates a new vehicle #Entity.

Parameters

#Entity The number to identify the new entity. #PB_Any can be used to auto-generate this number.

Return value

Returns zero if the vehicle entity can't be created. If #PB_Any is used as '#Entity' parameter, the new vehicle entity number is returned.

See Also

FreeEntity()

Supported OS

All

<- ApplyVehicleSteering() - Vehicle Index - CreateVehicleBody() ->