Graal Forums

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

XilosTinsu 06-06-2001 02:53 AM

Leap Damage
 
How do I make leaps do damage???? I have no idea how they do that, and/or do you know how to make a weapon hurt someone when they are in water????
Thanx for any help.

freddyfox 06-06-2001 04:35 AM

Re: Leap Damage
 
Quote:

Originally posted by XilosTinsu
How do I make leaps do damage???? I have no idea how they do that, and/or do you know how to make a weapon hurt someone when they are in water????
Thanx for any help.


Err...
To make leaps hurt, you need to learn how to work hitplayer/hitnpc. It's pretty much explained in the code list.

And you can't make a weapon hurt someone in the water. They are invincible in the water.

KJS 06-06-2001 06:35 AM

Re: Re: Leap Damage
 
Quote:

Originally posted by freddyfox

And you can't make a weapon hurt someone in the water. They are invincible in the water.

yes you can make it hurt someone in water... but you have to use the command
triggeraction targetx,targety,action,params;

example

NPC Code:

//They have to be next to you
if (playertouchsme) toweapons Hurt people in water and land;
if (weaponfired) {
triggeraction playerx+1.5+vecx(playerdir)*2,
playery+2+vecy(playerdir)*2,,;
}


then put this into a system weapon
NPC Code:

if (hurtpeople) {
setani hurt,;
hurt 1;
}


Lomgren 06-07-2001 05:12 AM

Or you can use the freezeplayer command as well.


All times are GMT +2. The time now is 08:34 AM.

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