deleteVehicleCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
(Fix examples and clean comments)
Line 7: Line 7:


|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=
|eff= global |Multiplayer Effects=
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Deletes a member of the crew of a vehicle. Human players cannot be deleted.<br><br>
| Deletes a member of the crew of a vehicle. Human players cannot be deleted.<br><br>
{{Informative | This command attempts to move the given [[crew]] member out before deleting it. Made especially for deleting dead crew members, as using conventional [[deleteVehicle]] leads to all sorts of bugs and ghost objects. While the argument is global, you should take extra steps and execute this where vehicle is [[local]] as moving units out of the vehicle happens where vehicle is [[local]] and you want this to always precede deletion. }} |DESCRIPTION=
{{Informative | This command attempts to move the given [[crew]] member out before deleting it. Made especially for deleting dead crew members, as using conventional [[deleteVehicle]] leads to all sorts of bugs and ghost objects. While the argument is global, you should take extra steps and execute this where vehicle is [[local]] as moving units out of the vehicle happens where vehicle is [[local]] and you want this to always precede deletion.}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''deleteVehicleCrew''' unit |SYNTAX=
| vehicle [[deleteVehicleCrew]] unit |SYNTAX=


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]] |PARAMETER1=
|p2= unit: [[Object]] |PARAMETER1=
 
|p2= unit: [[Object]] |PARAMETER2=


| [[Nothing]] |RETURNVALUE=  
| [[Nothing]] |RETURNVALUE=  
____________________________________________________________________________________________


|x1= <code>_helicopter [[deleteVehicleCrew]] [[driver]] _helicopter;</code> |EXAMPLE1=


|x1= <code>heli [[deleteVehicleCrew]] [[driver]] heli;</code>|EXAMPLE1=  
|x2= <code>{ _helicopter [[deleteVehicleCrew]] _x } [[forEach]] [[crew]] _helicopter; {{cc|deletes all crew}}</code> |EXAMPLE2=
 
 
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 37: Line 39:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 31, 2014 - 10:15 (UTC)</dd>
<dd class="notedate">Posted on August 31, 2014 - 10:15 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
<dd class="note">
Not quite sure of the exact use of this command. You can delete AI pilot for example with <code>[[deleteVehicle]] [[driver]] heli;</code> but co-pilot will then jump out. If you use <code>heli [[deleteVehicleCrew]] [[driver]] heli;</code> co-pilot stays.  
{{{!}}
{{!}} rowspan="2" {{!}} If you delete the AI pilot with
{{!}} <code>[[deleteVehicle]] [[driver]] heli;</code>
{{!}} co-pilot will jump out.
{{!}}-
{{!}} <code>heli [[deleteVehicleCrew]] [[driver]] heli;</code>
{{!}} co-pilot stays.
{{!}}}
</dd>
</dd>
<!-- Note Section END -->
</dl>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<h3 style='display:none'>Bottom Section</h3>
<dl class="command_description">
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
<dd class="notedate">Posted on April 10, 2015 - 13:43 (UTC)</dd>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dd class="note">
Using the following code will remove ALL crew from the given vehicle.
 
<code>{_myvehicle [[deleteVehicleCrew]] _x} [[forEach]] [[crew]] _myvehicle;</code>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 01:16, 19 December 2019

Hover & click on the images for description

Description

Description:
Deletes a member of the crew of a vehicle. Human players cannot be deleted.

This command attempts to move the given crew member out before deleting it. Made especially for deleting dead crew members, as using conventional deleteVehicle leads to all sorts of bugs and ghost objects. While the argument is global, you should take extra steps and execute this where vehicle is local as moving units out of the vehicle happens where vehicle is local and you want this to always precede deletion.
Groups:
Uncategorised

Syntax

Syntax:
vehicle deleteVehicleCrew unit
Parameters:
vehicle: Object
unit: Object
Return Value:
Nothing

Examples

Example 1:
_helicopter deleteVehicleCrew driver _helicopter;
Example 2:
{ _helicopter deleteVehicleCrew _x } forEach crew _helicopter; // deletes all crew

Additional Information

See also:
createVehicleCrewmoveInDrivermoveInGunnermoveInCommandermoveInTurretmoveInCargo Deleted EH

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 August 31, 2014 - 10:15 (UTC)
Killzone Kid
If you delete the AI pilot with deleteVehicle driver heli; co-pilot will jump out.
heli deleteVehicleCrew driver heli; co-pilot stays.

Bottom Section