ULX

Author Topic: Breach ULX command  (Read 1539 times)

0 Members and 1 Guest are viewing this topic.

Offline jcoolj13

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Breach ULX command
« on: April 04, 2017, 12:34:49 PM »
Hello, I need a breach ULX command where I can force a player to switch teams. Is that possible?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Breach ULX command
« Reply #1 on: April 04, 2017, 07:05:15 PM »
https://forums.ulyssesmod.net/index.php/topic,8043.msg40822.html#msg40822
Some code exists in that thread in the code block at line 79.
You'd need to create your own console command for it, and adjust whatever teams your actual gamemodes use.
Also, I didn't search our releases forums. You may find a gamemode utility there someone has already written.
Even if not for your gamemode, it should be reasonably easy with base lua knowledge to switch.
With little lua knowledge, would be a good place to start learning.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming