mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Stuff
Arguments, Return Value, (optional)
This commit is contained in:
@ -2,12 +2,12 @@
|
||||
* Author: GitHawk
|
||||
* Adds magazines to the supply.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Magazine Classname <STRING>
|
||||
* 2: Only partial <BOOL><OPTIONAL>
|
||||
* 2: Only partial <BOOL>(optional)
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
|
@ -2,10 +2,10 @@
|
||||
* Author: GitHawk
|
||||
* Show the resupplyable ammunition of all surrounding vehicles.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Target <OBJECT>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* ChildActions <ARRAY>
|
||||
*
|
||||
* Example:
|
||||
|
@ -2,14 +2,14 @@
|
||||
* Author: GitHawk
|
||||
* Adds all magazines of a vehicle to the supply.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Vehicle <OBJECT>
|
||||
* or
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Vehicle class <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Vehicle <OBJECT>
|
||||
* 1: Disable <BOOL><OPTIONAL>
|
||||
* 1: Disable <BOOL>(optional)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
|
@ -4,8 +4,8 @@
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit <OBJECT>
|
||||
* 1: Delete dummy object <BOOL><OPTIONAL>
|
||||
* 2: Unholster Weapon <BOOL><OPTIONAL>
|
||||
* 1: Delete dummy object <BOOL>(optional)
|
||||
* 2: Unholster Weapon <BOOL>(optional)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
|
@ -2,10 +2,10 @@
|
||||
* Author: GitHawk
|
||||
* Get the caliber of the ammo in a magazine and return its parameters.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Magazine Classname <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* 0: Caliber information <ARRAY>
|
||||
* 0: Rounded caliber <NUMBER>
|
||||
* 1: Caliber index <NUMBER>
|
||||
|
@ -2,10 +2,10 @@
|
||||
* Author: GitHawk
|
||||
* Get the supply count.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* Supply count <NUMBER>
|
||||
*
|
||||
* Example:
|
||||
|
@ -2,11 +2,11 @@
|
||||
* Author: GitHawk
|
||||
* Check whether enough supply is left to take the magazine.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Magazine Classname <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* Enough supply <BOOL>
|
||||
*
|
||||
* Example:
|
||||
|
@ -2,11 +2,11 @@
|
||||
* Author: GitHawk
|
||||
* Returns true if the magazine is in the current supply
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Magazine Classname <STRING>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* Magazine in supply <BOOL>
|
||||
*
|
||||
* Example:
|
||||
@ -38,5 +38,5 @@ if (GVAR(supply) == 2) exitWith {
|
||||
_magazinePresent
|
||||
};
|
||||
|
||||
// With infinite supply, the is always one left
|
||||
// With infinite supply, there is always one left
|
||||
true
|
||||
|
@ -2,12 +2,12 @@
|
||||
* Author: GitHawk
|
||||
* Removes a magazine from the supply.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Magazine Classname <STRING>
|
||||
* 2: Number of Rounds to withdraw <NUMBER><OPTIONAL>
|
||||
* 2: Number of Rounds to withdraw <NUMBER>(optional)
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* Magazine was removed <BOOL>
|
||||
*
|
||||
* Example:
|
||||
|
@ -2,11 +2,11 @@
|
||||
* Author: GitHawk
|
||||
* Sets the supply count.
|
||||
*
|
||||
* Argument:
|
||||
* Arguments:
|
||||
* 0: Ammo Truck <OBJECT>
|
||||
* 1: Supply Count <NUMBER>
|
||||
*
|
||||
* Return value:
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
|
Reference in New Issue
Block a user