Do you want the text to appear as a chat message or above a units head?
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
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 )