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 11-01-2003, 09:37 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Angry actionprojectile2 help

Okay, I heard that you use
NPC Code:

if (actionprojectile) {
...check params here...
}


if you want to check if a projectile hits a player, but I have been trying to use
NPC Code:

if (actionprojectile2) {
...check params here...
}


if you want to check if a projectile hits the ground or a wall. How do you use this? I check it clientside in a system weapon, instead of the weapon that fired the projectile. I know that #p(0) and #p(1) are the x and the y, but nothing is working. Any help?
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #2  
Old 11-02-2003, 11:56 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
well i dont clearly understand you but lets see if this helps...

this is a script i used on a gun npc for a current server i work in. This npc controls the damage that the gun inflicts on the player.

//#CLIENTSIDE
if(actionprojectile){
if(!strequals(#a,#p(1))) {
if (!strequals(#g,#p(0)) || strequals(#g,)) {
hurt 1;
freezeplayer .5;
with(getplayer(#p(1))) {playerkills ++;}
}else setplayerprop #c,We are allied, #p(1).;}}



if thats what you were talking about then i hope that helps
Reply With Quote
  #3  
Old 11-02-2003, 06:59 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
I understand that whole script, but the projectile is touching the Ground instad of the player, and that uses *I think* actionprojectile2.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #4  
Old 11-03-2003, 01:14 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Doesn't newfeatures2002 explains everything about actionprojectile?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
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 12:37 PM.


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