Graal Forums

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

ForgottenLegacy 11-01-2003 09:37 PM

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?

Gambet 11-02-2003 11:56 AM

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 :D

ForgottenLegacy 11-02-2003 06:59 PM

I understand that whole script, but the projectile is touching the Ground instad of the player, and that uses *I think* actionprojectile2.

osrs 11-03-2003 01:14 AM

Doesn't newfeatures2002 explains everything about actionprojectile?


All times are GMT +2. The time now is 06:54 AM.

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