BIS fnc removeRespawnInventory: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|descr= Remove a respawn inventory added by [[BIS_fnc_addRespawnInventory]]. | |descr= Remove a respawn inventory added by [[BIS_fnc_addRespawnInventory]]. | ||
|s1=[target, id] call [[BIS_fnc_removeRespawnInventory]] | |s1= [target, id] call [[BIS_fnc_removeRespawnInventory]] | ||
|p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] | |p1= target: [[Namespace]], [[Side]], [[Group]] or [[Object]] | ||
Line 18: | Line 18: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[west, 1] call BIS_fnc_removeRespawnInventory;</sqf> | ||
|x2= < | |x2= <sqf> | ||
_myRespawnInventory | private _myRespawnInventory = [missionNamespace,"ATSniper"] call BIS_fnc_addRespawnInventory; | ||
_myRespawnInventory call BIS_fnc_removeRespawnInventory; | |||
</sqf> | |||
|seealso= [[Arma 3: Respawn]] [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_getRespawnInventories]] | |seealso= [[Arma 3: Respawn]] [[BIS_fnc_addRespawnInventory]] [[BIS_fnc_getRespawnInventories]] [[BIS_fnc_setRespawnInventory]] | ||
}} | }} | ||
{{Note | |||
|user= Krzmbrzl00 | |||
|timestamp= 20160701172900 | |||
|text= To remove all inventories that are currently available you can use the following:<br> | |||
<sqf> | |||
{ | |||
[missionNamespace, _x] call BIS_fnc_removeRespawnInventory; | |||
To remove all inventories that are currently available you can use the following:<br> | } forEach ([missionNamespace, true] call BIS_fnc_getRespawnInventories; | ||
< | </sqf> | ||
} | |||
If all available inventories are removed, the default inventory for the current unit (as it would be placed in the editor) will be added automatically. | If all available inventories are removed, the default inventory for the current unit (as it would be placed in the editor) will be added automatically. | ||
}} | |||
Latest revision as of 12:42, 13 July 2022
Description
- Description:
- Remove a respawn inventory added by BIS_fnc_addRespawnInventory.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [target, id] call BIS_fnc_removeRespawnInventory
- Parameters:
- target: Namespace, Side, Group or Object
- id: Number
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- private _myRespawnInventory = [missionNamespace,"ATSniper"] call BIS_fnc_addRespawnInventory; _myRespawnInventory call BIS_fnc_removeRespawnInventory;
Additional Information
- See also:
- Arma 3: Respawn BIS_fnc_addRespawnInventory BIS_fnc_getRespawnInventories BIS_fnc_setRespawnInventory
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
- Posted on Jul 01, 2016 - 17:29 (UTC)
-
To remove all inventories that are currently available you can use the following:
If all available inventories are removed, the default inventory for the current unit (as it would be placed in the editor) will be added automatically.{ [missionNamespace, _x] call BIS_fnc_removeRespawnInventory; } forEach ([missionNamespace, true] call BIS_fnc_getRespawnInventories;