createVehicleLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (<code> tidy)
m (example, locality)
Line 5: Line 5:


|1.00|= Game version
|1.00|= Game version
|eff= local |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Creates an empty vehicle of the given type. See [[CfgVehicles]] for possible type values. Vehicle is not transferred through network in MP games. |= Description
| Creates an object of the given type. Created object is not transferred through network in MP games. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 19: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_tank = "M1Abrams" [[createVehicleLocal]] [[getMarkerPos]] "tankFactory";</code> |= Example 1
|x1= <code>_lightsource = "#lightpoint" [[createVehicleLocal]] _pos;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[createUnit]], [[createUnit array]], [[createVehicle array]], [[createVehicle]], [[deleteVehicle]], [[createUnitLocal (VBS2)]] |= See also
| [[createVehicle]], [[deleteVehicle]], [[createUnit]], [[createUnit array]], [[createVehicle array]] |= See also


}}
}}

Revision as of 21:21, 22 March 2014

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Creates an object of the given type. Created object is not transferred through network in MP games.
Groups:
Uncategorised

Syntax

Syntax:
Object = type createVehicleLocal position
Parameters:
type: String
position: Position
Return Value:
Object

Examples

Example 1:
_lightsource = "#lightpoint" createVehicleLocal _pos;

Additional Information

See also:
createVehicledeleteVehiclecreateUnitcreateUnit arraycreateVehicle array

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

If the object that is created is of the type ammo, then it will created on all clients (tested only on VBS2). --Kronzky 07:18, 5 June 2008 (CEST) Indeed the type of Ammo is transfered to ALL clients, but apparently also the muzzle effects (firing sound, light, etc.); this includes muzzles from Horns (Truck or Car Horn, Bicycle bells, etc.) as well as any other weapon. Tested on Arma 1 - Arma 2 OA (latest patch).--DamonDaemon 18:04, 5 September 2013 (CEST)

Bottom Section