![]() |
gunscript not doing dmg to people
NPC Code://#CLIENTSIDE the problem is that when i shoot people they set ani hurt but for some people nothing happens ps sorry about my gs1 habbits :( im doing a little bit better with gs2 tho :) |
The error is that you don't have any code to decrease the player's health in the first place! :P
Try adding clientr.hp -= YOUR_DAMAGE_HERE; after setani hurt,; (which should be setani("hurt", null);) and see if it works. |
Whoever has that gun will be able to get hit, everyone who doesn't won't.
You need to take the actionProjectile code out of the gun and put it in it's own script called, -System/Damage or something and then make sure everyone has it. Your gun script: PHP Code:
PHP Code:
|
I've already explained in other threads that you need to place the damage into another weapon, and even given you the code for the HP system:
Quote:
Take your onActionProjectile code, place it in to a weapon like "-Health", and add a line of code in the Control-NPC to add it to players on login. EDIT: Jerret beat me to it :( |
| All times are GMT +2. The time now is 07:36 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.