Specific owner of the unit text

Edy

You can change this now in User CP.
Reaction score
0
I need 2 know how to create a trigger that when a unit enters a region, the owner will get a message ,,random'' .
 

Solu9

You can change this now in User CP.
Reaction score
216
Do you want the text to appear as a chat message or above a units head?
 
  • Like
Reactions: Edy

Solu9

You can change this now in User CP.
Reaction score
216
Trigger:
  • Test
    • Events
      • Unit - A unit enters YOUR_REGION
    • Conditions
    • Actions
      • Game - Display to (Player group((Owner of (Triggering unit)))) the text: Huzzard!


This should work. However I'm not sure if this leaks.
 
  • Like
Reactions: Edy

Edy

You can change this now in User CP.
Reaction score
0
Trigger:
  • Test
    • Events
    • Unit - A unit enters YOUR_REGION
    • Conditions
    • Actions
    • Game - Display to (Player group((Owner of (Triggering unit)))) the text: Huzzard!


This should work. However I'm not sure if this leaks.

Thank you, works perfectly
 

Solu9

You can change this now in User CP.
Reaction score
216
Thank you, works perfectly

You're welcome.

Since I'm not sure the trigger leaks (to be honest I believe it does), here is a secure trigger.
It does the same thing but destroys the player group at the end of the trigger.

Trigger:
  • Test
    • Events
      • Unit - A unit enters YOUR_REGION
    • Conditions
    • Actions
      • Set PlayerGroup_Temp = (Player group((Owner of (Triggering unit))))
      • Game - Display to PlayerGroup_Temp the text: Huzzard!
      • Custom script: call DestroyForce( udg_PlayerGroup_Temp)


PlayerGroup_Temp is a Player Group variable (obviously :))
 
  • Like
Reactions: Edy

Edy

You can change this now in User CP.
Reaction score
0
You're welcome.

Since I'm not sure the trigger leaks (to be honest I believe it does), here is a secure trigger.
It does the same thing but destroys the player group at the end of the trigger.

Trigger:
  • Test
    • Events
    • Unit - A unit enters YOUR_REGION
    • Conditions
    • Actions
    • Set PlayerGroup_Temp = (Player group((Owner of (Triggering unit))))
    • Game - Display to PlayerGroup_Temp the text: Huzzard!
    • Custom script: call DestroyForce( udg_PlayerGroup_Temp)


PlayerGroup_Temp is a Player Group variable (obviously :))

This looks more promising, thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top