![]() |
actionprojectile2 help
Okay, I heard that you use
NPC Code: if you want to check if a projectile hits a player, but I have been trying to use NPC Code: 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? |
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 |
I understand that whole script, but the projectile is touching the Ground instad of the player, and that uses *I think* actionprojectile2.
|
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.