ULX

Author Topic: Teleport System  (Read 4171 times)

0 Members and 2 Guests are viewing this topic.

Offline bubblecon11

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Teleport System
« on: February 23, 2013, 09:48:22 PM »
I think it would be useful for there to be a command to set a teleport for a usergorup, ie: !tp admin; for an admin room to talk to people for whatever reason needed.
« Last Edit: February 24, 2013, 08:28:00 AM by bubblecon11 »

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Teleport System
« Reply #1 on: April 10, 2013, 08:38:32 AM »
would be easy but would serve no pupose in sand box but would be GREAT in dark rp and other game modes but this sounds way to easy to do
Code: [Select]
ply:SetPos( Pos )
!tp admin command in a nut shell
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Teleport System
« Reply #2 on: April 11, 2013, 07:24:59 AM »
Your suggestion is highly ambiguous. Teleport to admins? Teleport to a set waypoint for admins? Only allow admins to do this?

* Megiddo wanders off in confusion
Experiencing God's grace one day at a time.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Teleport System
« Reply #3 on: April 30, 2013, 07:19:30 AM »
hes refering to a admin room in  the map that would other wise involve no clip or a long walk (eg 3 mins?)
in a nut shell !tp admin
function tpadmin(caller,target)
local setingx=
local setingy=
local setingz=
if target ==nil then
-- play fancy noise if you want and do some sound stuff too
caller:setpos(setingx,setingy,setingz)
else then
if target:isvalid() then
target:setpos(setingx,setingy,setingz)
end
things to note this can cause adverse experience in high lag maps that have a lot of players if prop count is unrestricted because teleporting to areas with a load of props in one shot will leave no time to load it and likely cause a buffer net overflow.

« Last Edit: April 30, 2013, 07:22:38 AM by nathan736 »
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: Teleport System
« Reply #4 on: May 01, 2013, 10:41:03 AM »
Your suggestion is highly ambiguous. Teleport to admins? Teleport to a set waypoint for admins? Only allow admins to do this?

* Megiddo wanders off in confusion

He's saying something like, if you were to execute the command.

!tp <usergroup> <user>

like, !tp admin Duke, which would teleport all the admins to me.

Offline Mors Quaedam

  • Newbie
  • *
  • Posts: 30
  • Karma: 1
Re: Teleport System
« Reply #5 on: May 15, 2013, 02:58:26 PM »
He's saying something like, if you were to execute the command.

!tp <usergroup> <user>

like, !tp admin Duke, which would teleport all the admins to me.

FALSE

You'd want !bring for that. :)

On topic... I think this'd be great.

E.G.

!tp #admin would tp all admins to my target position
!bring #admin would bring them, etc
!jail #user might be a good one too, as well as !god, hp, etc.

The reason I put a # before the usergroup is because there could easily be someone with "Admin" in their name ingame and # would signify that you're targeting a usergroup rather than a specific player.