SpawnVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo revision 17633 by Lil Toady (Talk))
(at example spellingbug >.<)
Line 21: Line 21:


==Example==
==Example==
There is no exmple.
There is no example.


==Related scripting functions==
==Related scripting functions==
{{Vehicle functions}}
{{Vehicle functions}}
[[Category:Element Types]]
[[Category:Element Types]]

Revision as of 16:14, 6 December 2009

Spawns a vehicle at any given position and rotation

Syntax

bool spawnVehicle ( vehicle theVehicle, float x, float y, float z, float rx, float ry, float rz )

Required Arguments

  • theVehicle: The vehicle you wish to spawn
  • x: The x position you wish to spawn the vehicle at
  • y: The x position you wish to spawn the vehicle at
  • z: The x position you wish to spawn the vehicle at
  • rx: The x rotation you wish to spawn the vehicle at
  • ry: The y rotation you wish to spawn the vehicle at
  • rz: The z rotation you wish to spawn the vehicle at

Returns

Returns true if the vehicle spawned successfully, false if the passed argument does not exist or is not a vehicle.

Example

There is no example.

Related scripting functions