Thread: Call Weapon...
View Single Post
  #2  
Old 01-15-2002, 10:51 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
change a weapon do something like
NPC Code:

//find and make current weapon
if (!strequals(#w,*Net)&&weaponsenabled) {
for (this.i=0;this.i<weaponscount;this.i++) {
if (strequals(#w(this.i),*Net)) { selectedweapon=this.i; this.i=weaponscount+1; }
}
}



callweapon is like callnpc

make a weapon that has like
NPC Code:

if (killplayer) { playerhearts=0; }



then make a thing that calls it

NPC Code:

if (playertouchsme) {
for (this.i=0;this.i<weaponscount;this.i++) {
callweapon this.i,killplayer;
}
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote