![]() |
findweaponnpc()
Yeah, I saw findweaponnpc() in Skyld's sticky.
What's the difference between it and findweapon()? |
I cannot remember which way around it is, but one of them gets the weapon anyway, and one of them gets the weapon if you have it.
|
findWeapon() returns a weapon object only if you have the weapon in your inventory, and NULL if not.
findWeaponNPC() returns a weapon object regardless if you have it or not. Usefull for calling serverside public functions and whatnot. |
| All times are GMT +2. The time now is 09:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.