1. News
  2. Community
    1. Dashboard
    2. Mitglieder
      1. Mitgliedersuche
      2. EM-Hub Team
    3. FAQ
  3. Filebase
  4. Lexikon
  5. Img-Upload
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Dateien
  • Lexikon
  • FAQ
  • Galerie
  • Modding Team
  • Modding Teamseiten
  • Erweiterte Suche
  1. Emergency Hub
  2. EMERGENCY Reihe
  3. EMERGENCY 4
  4. Modding

Having Groups related to antennas

  • 999OTF DEV.
  • 31. Januar 2024 um 00:04

Jetzt Mitglied werden!

Du bist noch kein Emergency Hub Member? Registriere dich kostenlos und werde Teil der Emergency Hub Community :)

Benutzerkonto erstellen Anmelden
  • 999OTF DEV.
    Mitglied
    Reaktionen
    29
    Beiträge
    5
    Dateien
    6
    Modding Teams
    • 31. Januar 2024 um 00:04
    • #1

    hello everyone, I'm workning on an english modification that is very close to release. I'd like to set that groups buttons, when pushed, are automatically related to an antenna wich has commands to call units off map, debug menu etc. I already have the antennas in map with the commands but I didn't figure out how to connect them to the groups. Could you help me finish my modification?

  • Bernt112
    Mitglied
    Reaktionen
    29
    Beiträge
    22
    Dateien
    5
    • 31. Januar 2024 um 00:17
    • #2

    You want use the shortcuts?

    I remind something like this:

    Code
    	GameObject *o1;
    	GameObjectList ol1;
    	
    		o1 = *ol1.GetObject(0);
    		Game::AddToGroup(o1,0);
    		Person p0(o1);
    		p0.AssignCommand("rang_1");
    
    
    
    		o1 = *ol1.GetObject(1);
    		Game::AddToGroup(o1,1);
    		Person p1(o1);
    		p1.AssignCommand("alarm_161");
    		p1.AssignCommand("alarm_162");
    
    		Game::AddToGroup(o1,2);
    		
    		etc..
    Alles anzeigen
  • 999OTF DEV.
    Mitglied
    Reaktionen
    29
    Beiträge
    5
    Dateien
    6
    Modding Teams
    • 31. Januar 2024 um 00:40
    • #3
    Zitat von Bernt112

    You want use the shortcuts?

    I remind something like this:

    Code
    	GameObject *o1;
    	GameObjectList ol1;
    	
    		o1 = *ol1.GetObject(0);
    		Game::AddToGroup(o1,0);
    		Person p0(o1);
    		p0.AssignCommand("rang_1");
    
    
    
    		o1 = *ol1.GetObject(1);
    		Game::AddToGroup(o1,1);
    		Person p1(o1);
    		p1.AssignCommand("alarm_161");
    		p1.AssignCommand("alarm_162");
    
    		Game::AddToGroup(o1,2);
    		
    		etc..
    Alles anzeigen

    thanks a lot! Can I put the antenna in map with commands or I need to set it's commands by here?

  • DerWeiseler
    Mitglied
    Reaktionen
    12
    Beiträge
    46
    Dateien
    2
    • 8. Februar 2024 um 13:50
    • #4

    You can do it either way :)

Letzte Beiträge

  • Frage zu UI-Modding

    Collo 22. August 2026 um 14:46
  • Auenburg Multiplayer Modifikation

    Sunshine Akira 22. August 2026 um 07:36
  • Zeigt her Eure Skins

    Sunshine Akira 22. August 2026 um 07:11
  • Screenshots im EM4 Editor machen

    Sunshine Akira 21. August 2026 um 22:16
  • Auenburg Crash im Mulitplayer

    Antiphon 21. August 2026 um 01:37

Forum online seit:

2 Jahren, 9 Monaten, einer Woche, 4 Tagen, 15 Stunden und 54 Minuten

Tags

  • groups

Informationen

  1. FAQ
  2. Datenschutzerklärung
  3. Impressum

Community

  1. Letzte Aktivitäten
  2. Mitgliedersuche
  3. Mitglieder
  4. Team

Über uns

Ein Communityprojekt von vielen bekannten Gesichtern aus der EMERGENCY-Szene, bestehend aus ehem. Mitgliedern des Forums, Moddern und Streamern.

Von der Community, für die Community!

Emergency Hub
Community-Software: WoltLab Suite™
Style by Foxly