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 ??)