• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Display text to triggering player only?

Status
Not open for further replies.
Level 14
Joined
Jan 8, 2015
Messages
424
Hi, i have trouble making trigger diplaying text on certain command just to triggering player. Currently it shows it to all. I found a threat about it but it doesnt explain anything really, especially when stuff is regarding variables it should be explained in detail, and there is none. So can anyone explain me how to make it work?(playergroup variable for triggering player)
 
Level 3
Joined
Jul 2, 2014
Messages
45
  • Show text to triggering player
    • Events
      • Player - Player 1 (Red) types a chat message containing hello as An exact match
    • Conditions
    • Actions
      • Game - Display to (Player group((Triggering player))) the text: world
(All Players) -> Convert Player To Player Group -> Triggering player

Should work just fine.
 
Level 7
Joined
Mar 10, 2013
Messages
366
It leaks, as Dane stated. You should set it to a variable and then destroy the group using call DestroyGroup( udg_TempVar )
 
Last edited:
Status
Not open for further replies.
Top