Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2001, 02:53 AM
XilosTinsu XilosTinsu is offline
Registered User
Join Date: Jun 2001
Posts: 130
XilosTinsu is on a distinguished road
Send a message via AIM to XilosTinsu Send a message via Yahoo to XilosTinsu
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.
Reply With Quote
  #2  
Old 06-06-2001, 04:35 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
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.
Reply With Quote
  #3  
Old 06-06-2001, 06:35 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
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;
}

__________________
Thanks,
-KJL
Reply With Quote
  #4  
Old 06-07-2001, 05:12 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
Or you can use the freezeplayer command as well.
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
Reply


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 01:07 PM.


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