Author Topic: Excluding Items from the Event-Output List  (Read 457 times)

So here would be the script to allow a selected weapon output. How would I go about "excluding" certain items from the weapon drop box in the event menu?

Code: [Select]
registerOutputEvent("Player", "SetWeapon", TAB "datablock itemData");
This would list all available weapons on the server. I want to exclude a few. How would I do this in TS


« Last Edit: September 04, 2012, 11:52:01 AM by Goth77 »

You can't. Also, your parameter list to the event is invalid.

You can't. Also, your parameter list to the event is invalid.

Ok, but still. There is no way to basically exclude certain items from the weapon list in the setWeapon output? I know I could create a "WeaponSet" to use, but I want them all with an exception of a few.

Looks like im stuck making a generic weaponset, hunh
« Last Edit: September 04, 2012, 11:55:42 AM by Goth77 »

Ok, but still. There is no way to basically exclude certain items from the weapon list in the setWeapon output?
No there isn't
Why the forget you need this

What about looping through all the datablocks, checking if its a weaponItem and is not what you want blocked, and appending it to a list/string and using that as the argument?