Jump to content

Graz

Member
  • Content Count

    51
  • Joined

  • Last visited

  • Medals

Posts posted by Graz


  1. I'm trying to write a trigger but getting my head around the syntax is proving difficult. Most of the information is on the forums it's just putting it together that's tough.

    What I want the trigger to do

    Everytime Bluefor enters the zone, it checks against an array of UIDs, if there's a clan member the trigger sleeps for an hour before rechecking. If the player isn't on the UID list, the trigger activates.

    I'm having a bit of trouble putting the syntax together.

    Check UID against array, if yes, sleep for 1 hour (3600)

    If no activate

    Does anyone know how to turn the above 2 lines into a condition/activate argument?

    The activate is basically just to setpos with a hint, so it's fairly easy. what would I need to write in the deactivate though so it properly resets?

    The stage I'm basically at is

    EDIT: Updated!

    class Sensors

    {

    items=1;

    class Item0

    {

    position[]={4424.6094,5.6378021,2172.0027};

    activationBy="WEST";

    repeating=1;

    age="UNKNOWN";

    expActiv=" private ["_Clan213"];

    _Clan213 = [3370054, 87734342, 74351430]; // THIS IS LINE 1963

    private ["_PlayerUID"];

    _PlayerUID = (getplayerUID player);

    if (_PlayerUID in _Clan213) then

    {

    hint "Welcome to the clan area";

    }

    else

    {

    hint "You're trepassing!";

    };";

    class Effects

    {

    };

    };

    };

    It's not working though, any help would be really appreciated

×