Hi,
im currently stuck at this problem with a addaction.
I have a "Heal" action for a MP mission, every player should get this option if he is wounded.
So this as condition:
damage p1 > 0
This in OnAct:
heal = p1 addAction ["Apply field dressing", "heal.sqf", p1, 6, false, true, ""]; enableHeal = true;
There are triggers for all playable units (p1, p2, p3 and p4) with the same, just the unitname replaced inside the trigger.
The problem is, the action is added to the unit himself if he is wounded, so other units can apply this action too if they stand close to the wounded unit.
Example:
p1 is wounded and can apply the action. But p2 can also apply the action (on p1) if he stands close to him because the action is added to the unit p1...
And what i want is that only p1 can see and apply this action !
(remember, it should work in a MP game)
heal.sqf
So there should be a solution i hope.Code:_guy = _this select 3; if (alive _guy) then { _guy say "fieldDressing"; _guy removeAction heal; _guy playMove "AinvPknlMstpSlayWrflDnon_medic"; sleep 1; _guy setDamage 0; };
HOME
Reply With Quote




