Ulysses Stuff > Ulysses Release Archives
ULX ClearDecals - Clear all decals in the map.
Megiddo:
Short but sweet, I like it. :)
JamminR:
Nice.
One concern... name of the function... "ulx.respawn"; Though not used currently by ULX or any modules other than yours (that I know of), seems the name might be better named. ulx.cleardecals perhaps? :)
Respawn just seems to close to something that might be used in another module to, uh, something to do with spawning? :D
Wonder what other utilitarian console commands (that don't require sv_cheats and aren't blocked) might be put into a pack along with this.
* gears squeal
RynO-SauruS:
Well, this is embarrassing. I used the "ULX Respawn" addon as a reference to make this, because I was unsure of how the command system worked. :-\
I forgot to rename the function.. I changed the name of it in the non-SVN version, but not the SVN version.
I'll re-upload it with the function name changed. Anyway, thanks for pointing that out.
Edit: Done.
Edit 2: I noticed my command doesn't show up in the autocomplete for the 'ulx' command.
I've compared, and it seems I have mine formatted exactly like the commands in fun.lua.
I can't seem to find what's adding those commands to the autocomplete. How do I add mine?
JamminR:
I started to dig in and thought it would be simple.
According to ulx base.lua (where ulx.concommand is set up), The ulx concommand function seems to be where it adds.
However, it wasn't as simple (for me) to dig up as I had thought.
Megiddo, what adds the autocomplete? It's not "ulx.addToMenu" is it? He's not using it for the non-SVN version, but, seems it shouldn't have to be added to the gui menu.
Ryno, may try ulx.ID_HELP too. I noticed that in the autocomplete table set up an if/then/else statement depending on ID_HELP or ID_PLAYER_HELP
RynO-SauruS:
Man, I just noticed the variable is still called respawn.. D: I'll fix that..
Edit: Done.. Finally... I wish I hadn't messed up like that, this is embarrassing :-[ ...
Edit 2: About the autocomplete, what do you mean by ulx.ID_HELP? Where should I put it? :-\
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version