![]() |
setting player weapon
Is there anyway to do this? Say i want to have a certain weapon called to be the players active weapon (Thats activated when weaponfired)?
I tried a few things but have failed miserabally Edit: ive tried so far selectedweapon = but i think npcid changes, so that dosent work? and i know you cant write #w like setplayerprop #w |
NPC Code: ? (No, I don't like i.) |
Well if youre doing it from serverside access, you could remove it from their inventory then readd it. The newest weapon added always gets focus.
|
****y:
if(hasweapon(weaponname)){ } Sorry double posted, here if(!hasweapon(weaponname)){ addweapon namehere; //serverside } If they don't have the weapon it will add it. |
What Kat said is clearly the preferred way ;)
Please think of the background work that has to happen when deleting and readding a weapon. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.