Interface administrators, moderator
2,603
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|parametersCS = int model, [ Vec3 position ] | |parametersCS = int model, [ Vec3 position ] | ||
|parameter1 = int model The vehicle model ID. | |parameter1 = int model The vehicle model ID. | ||
|parameter2 = Vec3 position optional Vec3(0.0,0.0,0.0) The position for the vehicle. | |parameter2 = Vec3 position optional Vec3(0.0, 0.0, 0.0) The position for the vehicle. | ||
|return1 = Vehicle The vehicle handle. | |return1 = Vehicle The vehicle handle. | ||
|returnFail1 = null n/a | |returnFail1 = null n/a | ||
|usage = add a vehicle | |usage = add a vehicle | ||
|returnInfo = a handle to the vehicle | |returnInfo = a handle to the vehicle | ||
|bcMaxVersion = 1.0.71 | |bcMaxVersion = 1.0.71 | ||
|bcName = game.createVehicle | |bcName = game.createVehicle | ||
|notes = [[ | |notes = Use the [[addToWorld|addToWorld]] function afterwards to add the vehicle to the players games. | ||
This function has an example page: [[ScriptingExamples/AddVehicle|Add a Vehicle Example]] | This function has an example page: [[ScriptingExamples/AddVehicle|Add a Vehicle Example]] | ||
}} | }} |