canAdd: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.70|= Game version ____________________...") |
No edit summary |
||
Line 20: | Line 20: | ||
|x1= <code> | |x1= <code>if (player canAdd "FirstAidKit") then { | ||
player addItem "FirstAidKit"; | |||
} else { | |||
hint "Not enough space"; | |||
}; | |||
</code>|= EXAMPLE1 | </code>|= EXAMPLE1 | ||
Revision as of 16:05, 3 September 2014
Description
- Description:
- Check if given object can be stored in inventory of given unit.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
if (player canAdd "FirstAidKit") then { player addItem "FirstAidKit"; } else { hint "Not enough space"; };
Additional Information
- See also:
- See also needed
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