Graal Forums

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

manton 06-01-2001 01:59 AM

Gani Help
 
I'm trying to make it something where if the gani hits the player,it will hurt them.But I have no clue how to do it.Can anyone help?

MoonAngel 06-01-2001 05:19 AM

hmm, i don't know how to make a check for the npc's animation, #m is for the player's animation = \

manton 06-01-2001 11:11 PM

Please someone help!

LilbrojX 06-02-2001 04:39 AM

use #m

manton 06-02-2001 05:07 AM

Quote:

Originally posted by LilbrojX
use #m
That still doesn't explain how to detect if it hits the player. =/

LilbrojX 06-03-2001 11:07 AM

I get syntax errors, but use the #m detection flag tingy and &&playertouchsme...

OR you can use trigger action, wich works very good

Tyhm 06-06-2001 01:52 AM

You probably want something along the lines of hitobject x,y;

I dunno if that's in GANIs, or just in scripting...

grim_squeaker_x 06-06-2001 05:11 PM

That's just gani's...
And I think you can check for the current NPC's gani by using #m(-1), not sure though.

Warcaptain 06-11-2001 11:29 AM

I might be wrong, but Im guessing you know where your going to be hitting, and im guessing that the gani will move, so just unless the gani is much larger, figure out how far it is you want to hit, from the x,y of the npc and do a hitobjects x+dist,y-dist.

I think thats what Tyhm was going for.

If I make no sense, your probably right =)


All times are GMT +2. The time now is 03:24 AM.

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