Thread: triggeraction
View Single Post
  #7  
Old 09-25-2001, 12:17 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: ok so ...

Quote:
Originally posted by BocoC

NPC Code:

if (weaponfired) {
this.x=24;
this.y=34;

triggeraction playerx+1.5+vecx(playerdir),playery+2+vecy(playerd ir),explosion,#v(this.x),#v(this.y);
}

if (actionexplosion) {
this.explosionX=strtofloat(#p(0));
this.explosionY=strtofloat(#p(1));
putexplosion 3,this.explosionX,this.explosionY;
}


Please explain the 'vecx(playerdir),playery+2+vecy(playerdir)
what does the vecx and vecy stand for ? (vecinity ??)
Reply With Quote