Healing Armories WAC Script

View previous topic View next topic Go down

Healing Armories WAC Script

Post  AKMARK5000 on Wed Aug 28, 2013 1:38 pm

Sometimes fellow teammates may not be availible to heal you.  With this wac script, armories will fully replenish ammunition and health.
 
Example (wac script snipet);
 
PLOOP
if ssnnearssn(484,player,5) then
            ssnHP(player,150)
endif
END
 
Example Explained;
 
PLOOP is a command used to ensure compliance with multipayer or coop type maps and is closed by using END.  Don’t confuse the ending for an if phrase, which is endif.
 
The phrase if ssnnearssn simply defines the ssn of a player is near an object’s ssn.

The first number (484) is the ssn of the armory object.  The last number (5) is the distance that the player is located in relation to that armory object.

The phrase ssnHP(player,150) refers to the hit points or health of the ssn.  In this case the player or ssn of the player is given 150 HP (hit point, health).

Example (an entire wac script);
 
//----------------Healing Armories----------------
 
PLOOP
if ssnnearssn(484,player,5) then
            ssnHP(player,150)
endif
END
 
PLOOP
if ssnnearssn(603,player,5) then
            ssnHP(player,150)
endif
END
 
PLOOP
if ssnnearssn(622,player,5) then
            ssnHP(player,150)
endif
END

_________________
DF Webport Home & Webport Junction Forum
________________________________________________
=SOG=Mark5 - Admin - AKMARK5000
http://webportjunction.xtreemhost.com/
http://www.webportjunction.x10.mx/
http://mmgaming.forumotions.net/
"Ask me again and I'll deny everything."
avatar
AKMARK5000

Posts : 216
Join date : 2010-04-01
Age : 44
Location : Central NYS

View user profile http://webportjunction.xtreemhost.com/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum