createVehicleLocal: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 110086 by demellion on 2018-11-02T12:16:46Z) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Creates an object of the given type. Created object is not transferred through network in MP games. [[netId]] of such vehicle in multiplayer will be "0:0". To disable local vehicle creation, use [[CfgDisabledCommands]] to blacklist this command|= | | Creates an object of the given type. Created object is not transferred through network in MP games. [[netId]] of such vehicle in multiplayer will be "0:0". To disable local vehicle creation, use [[CfgDisabledCommands]] to blacklist this command|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| type '''createVehicleLocal''' position |= | | type '''createVehicleLocal''' position |SYNTAX= | ||
|p1= type: [[String]] |= | |p1= type: [[String]] |PARAMETER1= | ||
|p2= position: [[Position]] |= | |p2= position: [[Position]] |PARAMETER2= | ||
| [[Object]] |= | | [[Object]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_lightsource = "#lightpoint" [[createVehicleLocal]] _pos;</code> |= | |x1= <code>_lightsource = "#lightpoint" [[createVehicleLocal]] _pos;</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[createVehicle]], [[deleteVehicle]], [[createUnit]]|= | | [[createVehicle]], [[deleteVehicle]], [[createUnit]]|SEEALSO= | ||
}} | }} |
Revision as of 14:36, 7 April 2019
Description
- Description:
- Creates an object of the given type. Created object is not transferred through network in MP games. netId of such vehicle in multiplayer will be "0:0". To disable local vehicle creation, use CfgDisabledCommands to blacklist this command
- Groups:
- Uncategorised
Syntax
- Syntax:
- type createVehicleLocal position
- Parameters:
- type: String
- position: Position
- Return Value:
- Object
Examples
- Example 1:
_lightsource = "#lightpoint" createVehicleLocal _pos;
Additional Information
- See also:
- createVehicledeleteVehiclecreateUnit
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
- Posted on 07:18, 5 June 2008 (CEST)
- Kronzky
- If the object that is created is of the type ammo, then it will created on all clients (tested only on VBS2).
- Posted on 18:04, 5 September 2013 (CEST)
- DamonDaemon
- 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).
Bottom Section
- Posted on November 2, 2018 - 12:16 (UTC)
- demellion
-
WARNING: Do not instigate createVehicle or createVehicleLocal within a server function executed with preInit flag.
This will cause "You cannot play/edit this mission" for a vehicles compiled from a -mod and make server skip/loop that mission init.
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Object Manipulation
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters