![]() You'll need to make a prompt trigger to have it echo on your prompt. Once the server gets back to you, which is typically the prompt following your request, you will have the following table available: disable first in case you've logged out so when you enable it it works (there may be a proper to do this)function enableIRETargets() gmod.disableModule("any_name_you_want", "IRE.Targets")Īfter that, you need to tell the server what you want to target.įunction requestTargetFromServer(targetID) sendGMCP(string.format(], targetID))end gmod.enableModule("any_name_you_want", "IRE.Targets") When you log in, you need to use gmod.enableModule. Hey figured I would start a thread for mudlet.Īny know how I can put target health% in prompt?You need to use the gmod functions. RegisterAnonymousEventHandler('', function() whohere.remplayer() end ) -remove all instances of value V from indexed table T RegisterAnonymousEventHandler('', function() whohere.addplayer() end ) RegisterAnonymousEventHandler('', function() ayers() end ) ![]() If not ntains(whohere.all,names.name) then It seems to work but somehow doesn't seem quite right to me. I left it in there though so you can see where you'd put a similar function of your own - in your case testing each name against a list of enemies and then whatever your alert is.Īlso, a table remove tool I use in the whohere script, even though I don't remember why I use it here instead of just table.remove()ĭisclaimer: it's only a couple of days old and I'm not 100% sure I did the remove player function correctly. The whohere.parse() function is not included as it sorts the names (alliers, enemies, unknowns) and displays them in my UI - not something useful to you. The 3 functions run when gmcp data is updated. The following code populates a list of names present in the room (whohere.all) Would you feel comfortable using gmcp instead?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |