Whats wrong with this trig?

SpaceBar

New Member
Reaction score
16
Trigger:
  • Events
    • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to Player 12 (Brown)
      • (Owner of (Killing unit)) Equal to Player 1 (Red)
    • Actions
      • If/Then/Else
        • If - Conditions
          • (Random integer number between 1 and 5) Equal to 1
        • Then - Actions
          • Floating Text - Create floating text that reads ((Name of (Killing unit)) + : |cffff0000Boom...Headshot!|r above (Killing unit) with Z offset 0.00, using font size 10.00, colour (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Set BoomHeadshot = (Last created floating text)
          • Floating Text - Show BoomHeadshot for (All players)
          • Floating Text - Change BoomHeadshot: Disable permanence
          • Floating Text - Change the lifespan of BoomHeadshot to 2.00 seconds
          • Custom script: call DestroyTextTag ( udg_BoomHeadshot )
        • Else - Actions
          • Do nothing


I haven't worked with floating text (not this far into it anyway)
 

Exide

I am amazingly focused right now!
Reaction score
448
You're destroying the Floating Text..

Remove this action:
Trigger:
  • Custom script: call DestroyTextTag ( udg_BoomHeadshot )


Remove this action as well:

Trigger:
  • Do nothing


For testing purpose, remove the condition of the If/Then/Else. (So that it shows 100% of the time.) -Then you can be sure that it will run. (Add the condition again, later, when the trigger is working correctly.)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top