Rearm Functions

ace_rearm_fnc_addMagazineToSupply

Description

Adds magazines to the supply. [Global Effects]

Parameters

Index Description Datatype(s) Default Value
0 Ammo Truck OBJECT  
1 Magazine Classname STRING  
2 Only partial BOOL false

Return Value

None

Example

[ammo_truck, "32Rnd_155mm_Mo_shells"] call ace_rearm_fnc_addMagazineToSupply

Authors

  • GitHawk

ace_rearm_fnc_removeMagazineFromSupply

Description

Removes a magazine from the supply.

Parameters

Index Description Datatype(s) Default Value
0 Ammo Truck OBJECT  
1 Magazine Classname STRING  
2 Number of Rounds to withdraw NUMBER -1

Return Value

Description Datatype(s)
Magazine was removed BOOL

Example

[ammo_truck, "500Rnd_127x99_mag_Tracer_Red"] call ace_rearm_fnc_removeMagazineFromSupply

Authors

  • GitHawk

ace_rearm_fnc_disable

Description

Disables being able to rearm a vehicle’s turrets. [Global Effects]

Parameters

Index Description Datatype(s) Default Value
0 Vehicle OBJECT  
1 Disable BOOL true

Return Value

None

Example

[tank] call ace_rearm_fnc_disable
[tank, false] call ace_rearm_fnc_disable

Authors

  • GitHawk

ace_rearm_fnc_setSupplyCount

Description

Sets the supply count. [Global Effects]

Parameters

Index Description Datatype(s) Default Value
0 Ammo Truck OBJECT  
1 Supply Count NUMBER  

Return Value

None

Example

[ammo_truck, 1000] call ace_rearm_fnc_setSupplyCount

Authors

  • GitHawk

ace_rearm_fnc_isSource

Description

Returns if vehicle or object is a rearm source.

Parameters

Index Description Datatype(s) Default Value
0 Target OBJECT  

Return Value

None

Example

[cursorObject] call ace_rearm_fnc_isSource

Authors

  • shukari

ace_rearm_fnc_getSupplyCount

Description

Get the supply count.

Parameters

Index Description Datatype(s) Default Value
0 Ammo Truck OBJECT  

Return Value

Description Datatype(s)
Supply count NUMBER

Example

[ammo_truck] call ace_rearm_fnc_getSupplyCount

Authors

  • GitHawk

ace_rearm_fnc_makeSource

Description

Makes an object into a rearm source. Run on server only.

Parameters

Index Description Datatype(s) Default Value
0 Rearm Source OBJECT  
1 Rearm amount NUMBER 0
2 add rearm amount instead of set BOOL false

Return Value

None

Example

[cursorObject, 1200] call ace_rearm_fnc_makeSource

Authors

  • shukari (template from refuel makeSource)

ace_rearm_fnc_addVehicleMagazinesToSupply

Description

Adds all magazines of a vehicle to the supply.

Parameters

Index Description Datatype(s) Default Value
0 Ammo Truck OBJECT  
1 Vehicle object or Vehicle class STRING  

Return Value

None

Example

[ammo_truck, tank] call ace_rearm_fnc_addVehicleMagazinesToSupply
[ammo_truck, "B_MBT_01_arty_F"] call ace_rearm_fnc_addVehicleMagazinesToSupply

Authors

  • GitHawk