Ulysses Stuff > Suggestions
jail tp to coördinates
ULXGmodFan:
--- Quote from: Cobalt on May 29, 2014, 06:41:32 PM ---Here's how I would go about doing it:
1. Create a blank data file to put your vector in
2. Hook initialize and read the file using util.StringToType (after you check if there is anything in it) and save that as a global vector
3. Create a ulx command to write a vector to that file using util.TypeToString (Have a function in it to refresh the global vector if you overwrite it)
4. Copy jailtp but instead of sending it to the position where you are looking, send it to the global vector instead.
--- End quote ---
I have now idea how to handel util.stringtype and all that stuff, lol, blank textfile? shold I call it lua or addon or? Man I wish i could be better at moddding like this
--- Quote from: Neku on May 29, 2014, 10:03:28 PM ---Here's what I came up with, I haven't tested it, so tell me if anything goes wrong.
I posted the code in the attachments.
--- End quote ---
Thganks, I will try this, put it in addons?
Edit: Thanks Neku, I understand your file. Looks like other addons I have. So it just overwrites the existing one? On what line do I add the vector coordinates?
Oh and one more thing, should I remove the space in the file name before I put in addons? Are change the space for an underscore?
ULXGmodFan:
Oh awesome! You added it to the menu. Yes it looks very clear and easy and handy the jailpos in the menu, but if I click it and then try to teleport it says that the map has no jail pos set.
But what you've done is EXACTLY what I needed, many thanks, if this works it should be in ULX standard
Neku:
--- Quote from: ULXGmodFan on June 08, 2014, 01:31:56 AM ---Oh awesome! You added it to the menu. Yes it looks very clear and easy and handy the jailpos in the menu, but if I click it and then try to teleport it says that the map has no jail pos set.
But what you've done is EXACTLY what I needed, many thanks, if this works it should be in ULX standard
--- End quote ---
There's a command to set the jail position at your current location by the way.
ULXGmodFan:
Which is? I tried with rcon ulx jailpos "coordinates copied from getpos"
It would be awesome if it works in the menu too.
Thanks alot
Neku:
It should just be !jailpos.
There aren't any parameters for it, just use it and it will set a jailtp position for that specific map.
Please note: jailpos is not usable in rcon. And jailpos requires superadmin or an "equivalent".
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version