View Single Post
  #1  
Old 06-05-2002, 02:35 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
actionprojectile problem

i had this working at one point, now its bugged, dont know what happened.


well it was laying arrows perfect but now its not.
im using shoot, and i want it to lay an arrow when it hits the ground im using it like it said in newfeatures2002.txt
with :
NPC Code:

if (actionprojectile){
setplayerprop #c,#p(0)--#p(1)--#p(2)--#p(3);
if (strequals(#p(2),arrow)){
this.px=strtofloat(#p(0));
this.py=strtofloat(#p(1));
putnpc2 this.px,this.py,{
if (created){
setcharani arrowstuck,barrow0.png;
sleep 4;
destroy;
}
}
}
}




it lays the arrow too soon, and the arrow is half the distance from where the arrow finaly stopped going.
any ideas what theproblem is?