Skip to content
Broström.A | Evul edited this page Jan 15, 2024 · 15 revisions

The gate function creates a automated open and close gate system without requirement of setting up triggers.

/* Arguments:
 * 0: Object <OBJECT>
 * 1: Side <STRING> (Optional) (Default; WEST)
 * 2: Distance <STRING> (Optional) (Default; 30)
*/

["gate"] call cav_mission_fnc_gate;
["gate","WEST"] call cav_mission_fnc_gate;
["gate","WEST", 30] call cav_mission_fnc_gate;

The function is applied manually via Eden on the objects init.

See also

cScripts Development Wiki

Clone this wiki locally