Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   hitobject (https://forums.graalonline.com/forums/showthread.php?t=24835)

SSRobgeta 03-02-2002 12:34 AM

hitobject
 
This doesn't hurt the other NPCs!?! It;s not the whole script, just the part that is effecting it.
NPC Code:

this.x = x;
this.y = y;
this.dir = dir;
this.apos = {1.5,1, -1.5,1.5, 1.5,4, 3.5,1.5};

hitobjects 1,this.x+this.apos[this.dir*2],this.y+this.apos[this.dir*2+1];


Loriel 03-02-2002 12:58 AM

NPCs need a "hearts" value greater than 0 to get hit by hitobjects, as far as I know.

SSRobgeta 03-02-2002 01:35 AM

Quote:

Originally posted by Loriel
NPCs need a "hearts" value greater than 0 to get hit by hitobjects, as far as I know.
it does
NPC Code:
hearts=3;


Saga2001 03-02-2002 02:05 PM

Re: hitobject
 
Quote:

Originally posted by SSRobgeta
This doesn't hurt the other NPCs!?! It;s not the whole script, just the part that is effecting it.

You paid attention to the guidelines! Kai, give him a cookie.

as far as the code goes, could be a bug or something, if its an npc, isn't there hitnpcs? Because that would probably work best, but I don't really use that stuff, so I am not sure, if you sent me the entire script on AIM I could look, SN = PastAustin.


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

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