![]() |
so what u want is swords disabled but not the NPCs Weapons Or anything in that order may i ask why and why dont u use
PHP Code:
|
Quote:
PHP Code:
|
With that script you could simply select another weapon.
Use timeouts and set selectedweapon to this weapon always. I did so in the Nimda sparring. But we are off-topic now. We wanted to disable the sword, and just the sword. By doing "setsword no-sword.png,0;" you still have a zero displayed. Using disabledefmovement would hide that, but I couldn't carry NPCs anymore. I know how to carry tile objects like bushes and so, and yes I could even make the player carry a bomb, but I can't make him carry a whole script. |
Disabling NPC Weapons
if (playerenters) {
if (!isweapon) { toweapons NoWeaponSelected; } disableselectweapons; timeout = .05; } if (timeout) { if (!strequals(#w(selectedweapon),NoWeaponSelected)) { for (this.index = 0; this.index <= weaponscount; this.index++){ if (strequals(#w(this.index),NoWeaponSelected)) break; } selectedweapon = this.index; } timeout = .05; } That should be the correct way to disable npc weapons... almost forgot the disable q select |
disableweapons;
|
Quote:
His just stops the sword from working. |
Disableweapons?
Disable Weapons does not let you use your sword...
that script lets you use your sword... also, I had to re-edit because I forgot about disableselectweapons; |
Quote:
after doing shoot the control-npc would get triggered, you set some params with setshootparams and it reads them out after this you can place the right NPC whre you actually throw it |
Why would you really want to disable JUST the sword?? I generally do it the other way, KEEP just the sword, in which case you run it on a timeout, and have it set a this.var of what the selectedweapon is. Such as like:
NPC Code: Is it setting the selected weapon or setplayerprop, god, I dunno, I have one I made that I just repeatedly used. I'm scripted out for a few days, I just made a security system, took AGES to do, it wasn't necessarily hard, just long coded. Angel wanted it scripted, so I did :P I worked on it a total of three days, but it was mostly sitting down and doing one thing, coming back hours l8er or what not ;) It's got a keypad that you can click or type in. ---Shifter |
Quote:
Also one reason why to have the sword disabled is so you can have a server whose primary weapon is not a sword. Like for instance it could be a regular pistol or socom. |
All times are GMT +2. The time now is 10:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.