Create
Return to post

Comparing difference between and

View raw
  • variables
  • {
  • global:
  • 0: BtnTpHost
  • 1: BtnTpSpawn
  • 2: BtnPing
  • }
  • rule("Init")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • actions
  • {
  • Set Ultimate Ability Enabled(Event Player, False);
  • Set Primary Fire Enabled(Event Player, False);
  • Set Melee Enabled(Event Player, False);
  • Set Crouch Enabled(Event Player, False);
  • }
  • }
  • rule("Set buttons")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • Global.BtnTpHost = Button(Melee);
  • Global.BtnTpSpawn = Button(Crouch);
  • Global.BtnPing = Button(Primary Fire);
  • }
  • }
  • rule("HUD")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • "Actions"
  • Create HUD Text(All Players(All Teams), Custom String("Actions"), Null, Custom String("{0}\r\n{1}\r \n{2}", Custom String(
  • "Press {0} to teleport on {1}", Global.BtnTpHost, Host Player), Custom String("Press {0} to teleport on spawn",
  • Global.BtnTpSpawn), Custom String("Press {0} to ping", Global.BtnPing)), Right, 0, Color(Aqua), Color(White), Color(White),
  • Visible To and String, Default Visibility);
  • "Press {0} to teleport on {1}", Input Binding String(Global.BtnTpHost), Host Player), Custom String(
  • "Press {0} to teleport on spawn", Input Binding String(Global.BtnTpSpawn)), Custom String("Press {0} to ping",
  • Input Binding String(Global.BtnPing))), Right, 0, Color(Aqua), Color(White), Color(White), Visible To and String,
  • Default Visibility);
  • "On se pépom"
  • Create HUD Text(All Players(All Teams), Custom String("{0} Strategy mode by LotuxPunk {0}", Hero Icon String(Hero(Bastion))), Null,
  • Null, Left, 0, Color(Aqua), Color(White), Color(White), Visible To and String, Default Visibility);
  • }
  • }
  • rule("Teleport to host")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Global.BtnTpHost) == True;
  • }
  • actions
  • {
  • Teleport(Event Player, Host Player);
  • Small Message(Event Player, Custom String("Teleported to {0}", Host Player));
  • }
  • }
  • rule("Teleport to spawn")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Global.BtnTpSpawn) == True;
  • }
  • actions
  • {
  • Teleport(Event Player, Spawn Points(Team Of(Event Player)));
  • Small Message(Event Player, Custom String("Teleported to spawn"));
  • }
  • }
  • rule("Draw ping")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Global.BtnPing) == True;
  • }
  • actions
  • {
  • Destroy Effect(Last Created Entity);
  • Create Effect(All Players(All Teams), Orb, Color(Aqua), Ray Cast Hit Position(Eye Position(Event Player), Eye Position(
  • Event Player) + Facing Direction Of(Event Player) * 1000, All Players(All Teams), Event Player, True), 0.250, None);
  • Wait(0.250, Ignore Condition);
  • Loop If Condition Is True;
  • }
  • }
Join the Workshop.codes Discord