Announcement

Collapse
No announcement yet.

For Nikovk regarding Total Resistance

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

  • For Nikovk regarding Total Resistance

    Add this to all civilians:

    Code:
    this addAction ["Check Weapons", "checkWeapons.sqf", [], false, true, "", "side _this != civilian"];;
    checkWeapons.sqf
    Code:
    _gen = _this select 0;
    _caller = _this select 1;
    _id = _this select 2;
    
    _magazines = magazines _gen;
    hint format ["Primary Weapon: %1\n\nSecondary Weapon: %2\n\nMagazines: %3", primaryWeapon _gen, secondaryWeapon _gen, _magazines];
    There is no code for directChat (there's directSay but thats not what you think it is) either way, only the person that uses the action will see the hint.

    Then for joining... I would put this on the russian and guerrilla squad leaders
    Code:
    this addAction ["Join Team", "joinTeam.sqf", [], false, true, "", "side _this != side _target"];
    joinTeam.sqf
    Code:
    _gen = _this select 0;
    _caller = _this select 1;
    _id = _this select 2;
    
    [_caller] joinSilent group _gen;
    ---Bellicosity---

Connect

Collapse

TeamSpeak 3 Server

Collapse

Advertisement

Collapse

Twitter Feed

Collapse

Working...
X