Jump to content

Recommended Posts

I want a create a safezone similar to the one in KOTH.

No i tried to create a trigger and put (vehicle player) allowDamage false; into "on activation" and (vehicle player) allowDamage true; into "on deactivation". The problem is that the mission is a multiplayer one and when i do this it prevents ALL of the players and manned vehicles on the server from taking damage...

Share this post


Link to post
Share on other sites

It is really that complicated?

[
    mytrigger,
    
    {
    sleep 2;
    
    if !(vehicle _x == _x) then {
    
        (vehicle _x) allowDamage false;
        _x allowDamage false;
        
    } else {
    
        _x allowDamage false;
    };
    
}
,
{
    sleep 2;
    
    if !(vehicle _x == _x) then {
    
        (vehicle _x) allowDamage true;
        _x allowDamage true;
        
    } else {
    
        _x allowDamage true;
        
    };
},
    false
] execVM "fn_triggerListChanged.sqf";
  • Like 1

Share this post


Link to post
Share on other sites

GOTCHA!

{(vehicle player) allowDamage false} Foreach thislist; on activation

{(vehicle player) allowDamage true} forEach [allUnits, vehicles]; on deactivation

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×