createVehicleLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
Line 41: Line 41:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|CREATEVEHICLELOCAL]]
[[Category:Scripting Commands OFP Elite |CREATEVEHICLELOCAL]]
[[Category:Scripting Commands ArmA|CREATEVEHICLELOCAL]]
[[Category:Command_Group:_Object_Manipulation|CREATEVEHICLELOCAL]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
Line 59: Line 50:
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->
[[Category:Scripting Commands|CREATEVEHICLELOCAL]]
[[Category:Scripting Commands OFP Elite|CREATEVEHICLELOCAL]]
[[Category:Scripting Commands ArmA|CREATEVEHICLELOCAL]]
[[Category:Command Group: Object Manipulation|CREATEVEHICLELOCAL]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 18:13, 3 December 2018

-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. 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.