Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Fleamonji on April 03, 2011, 11:45:40 AM

Title: Is there a ULib.cmds.PlayerArg for teams?
Post by: Fleamonji on April 03, 2011, 11:45:40 AM
As the title suggests, for ULib.cmds.PlayerArg - is there an equivalent for teams?

EDIT:  Found the docs, doesn't appear to be one.  Would it be possible to make my own?

EDIT2:  Add some sorta ULib.cmds.TeamArg please :D
Title: Re: Is there a ULib.cmds.PlayerArg for teams?
Post by: Megiddo on April 03, 2011, 05:54:34 PM
Rather than writing a new argument type for this, it seems that this would be better implemented as a string arg restricted to team names.
Title: Re: Is there a ULib.cmds.PlayerArg for teams?
Post by: JamminR on April 03, 2011, 06:39:52 PM
Agreed.
Logic to it.
String = blue (a team),
within function, get all players, for each player, if player team name = blue, then do ...