Difference between revisions of "VN fnc whitelisted arsenal calculate access"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |a= " to " |author= ")
(Page filling)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Ethan Johnson
 
|author= Ethan Johnson
  
|e=
+
|a= global
 +
 
 +
|e= local
  
 
|g1= whitelisted_arsenal_functions
 
|g1= whitelisted_arsenal_functions
  
|d= <pre>/*
+
|d= Updates <tt>VN_whitelisted_arsenal_allowedItems</tt> global variable for the whitelisted arsenal functions, depending on the ''unit''<nowiki/>'s rank.
        FILE: fn_whitelisted_arsenal_calculate_access.sqf
 
        DATE: 27-07-2019
 
        AUTHOR: Ethan Johnson
 
 
 
        DESCRIPTION:
 
                Adds all client stuff for the whitelisted arsenal funtions
 
        PARAMETERS:
 
                (0): OBJECT - Unit that should be used in the check.
 
        RETURNS:
 
                NONE
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_whitelisted_arsenal_calculate_access]];
+
|s= [unit] call [[VN_fnc_whitelisted_arsenal_calculate_access]]
  
|p1n=
+
|p1n= unit
|p1t=
+
|p1t= object
|p1d=
+
|p1d= rank-checked unit
 
|p1v=
 
|p1v=
  
Line 39: Line 28:
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>[player] call [[VN_fnc_whitelisted_arsenal_calculate_access]];</code>
 
}}
 
}}

Latest revision as of 22:19, 25 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): global
Effect(s): local

Description

Updates VN_whitelisted_arsenal_allowedItems global variable for the whitelisted arsenal functions, depending on the unit's rank.

Syntax

Syntax
[unit] call VN_fnc_whitelisted_arsenal_calculate_access
Parameters
unit: Object - rank-checked unit
Return value
Nothing

Examples

Example 1
[player] call VN_fnc_whitelisted_arsenal_calculate_access;