Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-30-2004, 06:17 AM
Value Value is offline
Registered User
Join Date: Jan 2004
Posts: 8
Value is on a distinguished road
Question Help with actionprojectile

(BEFORE YOU READ - I searched the forums already and none explained how to make it work right or none had the problem ive been having) I need help with actionprojectile. I put it in the control-npc and it never works when the projectile hits a player or npc. I did it clientside too and put it in a system npc, but it NEVER works. Here is the part of my script (NOTE: The shoot and setshootparams work perfectly because I tested it with actionprojectile2 and it works)
NPC Code:

if (actionprojectile) {//THIS ONE DOESN'T WORK!
if (strequals(#p(2),altairarrowhit)){
this.ax = strtofloat(#p(0));
this.ay = strtofloat(#p(1));
for (this.p = 0;this.p < playerscount;this.p++) {
hitplayer this.p, 3, this.ax, this.ay;
}
}
}


NPC Code:

if (actionprojectile2) {//THIS ONE DOES! Just hits everyone in the level
if (strequals(#p(2),altairarrowhit)){
this.ax = strtofloat(#p(0));
this.ay = strtofloat(#p(1));
for (this.p = 0;this.p < playerscount;this.p++) {
hitplayer this.p, 3, this.ax, this.ay;
}
}
}



Help if you can.
~Value (Manager of Altair)

Edit: Loriel added [code]-tags.

Last edited by Loriel; 01-30-2004 at 02:36 PM..
Reply With Quote
 


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 02:28 AM.


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