Difference between revisions of "cmf kosherGarage fnc init"

From cluster wiki
Jump to navigation Jump to search
Line 32: Line 32:
|var2= {{!}} LOCAL {{!}}{{!}} UI {{!}}{{!}} cmf_kosherGarage_display {{!}}{{!}} A variable containing the garage [https://community.bistudio.com/wiki/Display Display]
|var2= {{!}} LOCAL {{!}}{{!}} UI {{!}}{{!}} cmf_kosherGarage_display {{!}}{{!}} A variable containing the garage [https://community.bistudio.com/wiki/Display Display]
|var3= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_kosherGarage_spawns {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] variable containing all the spawned [https://community.bistudio.com/wiki/Script_Handle Script Handles]
|var3= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_kosherGarage_spawns {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] variable containing all the spawned [https://community.bistudio.com/wiki/Script_Handle Script Handles]
|var4= {{!}} LOCAL {{!}}{{!}} UI {{!}}{{!}} cmf_kosherGarage_whitelist {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] variable containing the parsed whitelist
|var4= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_kosherGarage_whitelist {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] variable containing the parsed whitelist


|event1= {{!}} LOCAL {{!}}{{!}} cmf_kosherGarage_onOpen {{!}}{{!}} [display] {{!}}{{!}} Is fired locally when a kosherGarage interface is opened
|event1= {{!}} LOCAL {{!}}{{!}} cmf_kosherGarage_onOpen {{!}}{{!}} [display] {{!}}{{!}} Is fired locally when a kosherGarage interface is opened

Revision as of 16:21, 17 December 2022


Hover & click on the images for description
Description
Description:
This function initializes kosherGarage on a object.
Execution:
Call
Groups:
CMF3: kosherGarage
Syntax
Syntax:
[actionObject, garageObject, garageDirection, whitelistID, clearRange] call cmf_kosherGarage_fnc_init
Parameters:
actionObject: Object - The object to attach the "Open Garage" action to.
garageObject: Object - An object to be used as the position of where to spawn the vehicles
garageDirection: Number - (Optional, default 0) The direction to spawn vehicles in
whitelistID: String - (Optional, default "ALL") a whitelist ID to whitelist the garage (you can get an ID using cmf_kosherGarage_fnc_registerWhitelist).
clearRange: Number - (Optional, default 8) The radius from the garageObject to delete existing vehicles (used to avoid spawned vehicles from clipping).
Return Value:
None
Examples
Example 1:
[this, _myGarageObject, 75, "myLoadoutID", 5] call cmf_kosherGarage_fnc_init;
Additional Information
See also:
See also needed
Internal Variables
Locality Namespace Name Description
LOCAL Mission cmf_kosherGarage_open A Boolean variable that is true when the garage is open
LOCAL UI cmf_kosherGarage_display A variable containing the garage Display
LOCAL Mission cmf_kosherGarage_spawns An Array variable containing all the spawned Script Handles
LOCAL Mission cmf_kosherGarage_whitelist An Array variable containing the parsed whitelist
Events
Locality Name Variables Description
LOCAL cmf_kosherGarage_onOpen [display] Is fired locally when a kosherGarage interface is opened
LOCAL cmf_kosherGarage_onClose [ ] Is fired locally when a kosherGarage interface is closed
LOCAL cmf_kosherGarage_onSelect [vehicle] Is fired locally when a new vehicle is selected
Notes