createVehicle

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.34Effects of this scripting command are broadcasted over the network and happen on every computer in the network

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 = type createVehicle position
Parameters:
type: String - vehicle/object className
position: Array - format Position to create the vehicle at
Return Value:
Object

Examples

Example 1:
_jeep = "Jeep" createVehicle (position player)

Additional Information

Multiplayer:
Behaviour unknown.
See also:
createUnit, createUnit array, createVehicle array, createVehicleLocal, deleteVehicle

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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.

Bottom Section

Personal tools
Buy ArmA now!