Announcement

Collapse
No announcement yet.

Zone Restriction version 2

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [GUIDE] Zone Restriction version 2

    To go along with a new video tutorial here is the script that I created for Zone Restriction that is used on my latest TvT scenarios.

    zoneRestrictor.sqf
    Code:
    //usage: zoneR = [nameOfTrigger]execVM "Unk\zoneRestrictor.sqf";
    
    _triggerActivated = _this select 0;
    if !(player in (list _triggerActivated)) exitWith {};
    
    player groupChat "RETURN TO YOUR ASSIGNED AREA IMMEDIATELY!";
    playSoundWarning = true; 
    cutText ["YOU HAVE 7 SECONDS TO LEAVE THIS AREA", "plain", 0];
    titleFadeout 5;
    
    sleep 7;
    if (player in (list _triggerActivated)) then
    {
        player setDamage 1;
        player groupChat "YOU HAVE BEEN KILLED FOR LEAVING YOUR AREA";
    } else {
        if (side player == west || side player == independent) then {player groupChat "YOU HAVE CLEARED THE UNAUTHORIZED ZONE";};
    };
    initPlayerLocal.sqf
    Code:
    playSoundWarning = false;
    Here is the video tutorial:

    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member

    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN

Connect

Collapse

TeamSpeak 3 Server

Collapse

Advertisement

Collapse

Twitter Feed

Collapse

Working...
X