Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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?
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.