View Single Post
  #1  
Old 08-08-2004, 03:30 PM
sparkers sparkers is offline
Yojumisto Online
sparkers's Avatar
Join Date: Jun 2004
Location: Why does anyone care about that?
Posts: 111
sparkers is on a distinguished road
Send a message via AIM to sparkers
I have a question as well.
I figured I'd put it here since it has to do with actionprojectile.
How come this wont work.
This is the NPC:
NPC Code:

if (actionprojectile&&strequals(#p(1),jackin)&&haswea pon(*Tavi)){setlevel2 net_sunriseinc-maincomp.nw,31,29;
}


and this is the weapon:
NPC Code:


//#CLIENTSIDE
if (weaponfired&&this.inuse==0) {disableweapons;
replaceani idle,tavi_idle;replaceani walk,tavi_walk;sleep .1;this.inuse=1;sleep .4;showtext 999,screenwidth-1,100,verdana,r,;changeimgvis 999,0;

}

if (keypressed&&keydown(4)&&this.inuse==1) {enableweapons;replaceani idle,idle;replaceani walk,walk;
sleep .1;this.inuse=0;sleep 2;showtext 999,screenwidth-1,0,verdana,r,;changeimgvis 999,4;
}

if (keypressed&&keydown(5)&&this.inuse==1) {


freezeplayer .4;
setani jackin,;
setshootparams jackin;
if (playerdir=0) {sleep .3;
shoot playerx,playery-.25,playerz,3.14/2,.1,1.1,swordy,;

if (playerdir=1) {sleep .3;
shoot playerx-.25,playery,playerz,3.14,.1,1.1,swordy,;
}
if (playerdir=2) {sleep .3;
shoot playerx,playery+.25,playerz,3.14*1.5,.1,1.1,swordy ,;
}
if (playerdir=3) {sleep .3;
shoot playerx+.25,playery,playerz,0,.1,1.1,swordy,;
}sleep .5;setani tavi_idle,;
}
}


but when you use it right by the npc
it wont change ur level.
Reply With Quote