createVehicle
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.34
Description
- Description:
- Create an empty object of given type classname at given position.
For a full class reference see Classes.
Syntax
- Syntax:
- Object= "classname " createVehicle Position
- Parameters:
- classname : String - vehicle/object class name
- Position - position to create the vehicle at
- Return Value:
- Unit - The created Unit, Vehicle Unit Building or Object is returned.
Examples
- Example 1:
_jeep = "Jeep" createVehicle (position player)
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- createUnit, createUnit array, createVehicle array, createVehicleLocal, deleteVehicle
Notes
Notes
Notes
- Posted on August 13, 2006 - 12:18
- raedor
- This command sets the created vehicle not exactly at the given position, you have to setPos it there, if accuracy counts.
- Posted on Jan 20, 2006
- bdfy
- This command sets the created vehicle in the nearest _possible_ position. You can create a dozen of tanks with it - they will appear side by side.
- Posted on December 13, 2006 - 12:27
- Salisan
- Observe that buildings with the default destrType will not work correctly in multiplayer in Armed Assault when created with this command. The Destruction effect will only be displayed where the building is local.

