mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
496 B
Plaintext
24 lines
496 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Kingsley
|
|
* Gets the cost for the given side and classname.
|
|
*
|
|
* Arguments:
|
|
* 0: Side <SIDE>
|
|
* 1: Classname <STRING>
|
|
*
|
|
* Return Value:
|
|
* Cost <NUMBER>
|
|
*
|
|
* Example:
|
|
* [west, "Sandbag"] call ace_fortify_fnc_getCost
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_side", "_classname"];
|
|
|
|
private _objects = missionNamespace getVariable [format [QGVAR(Objects_%1), _side], []];
|
|
|
|
(((_objects select {(_x select 0) == _classname}) param [0, []]) param [1, 0])
|