Kill Unit Trigger

XxMayhemxX

New Member
Reaction score
6
Question about the Trigger: Kill Unit

Code:
Lives Counter
    Events
        Unit - Any Unit Enters End
    Local Variables
    Conditions
        (Owner of (Triggering unit)) == 15
    Actions
        Unit - Kill (Triggering unit)
        Variable - Modify Lives: - 1
        Leaderboard - Set Leaderboard item text at column 4 and row 1 to (Text(Lives))

This trigger here will kill any enemy that gets to the end of the maze(a leak) and make you lose 1 life on the leaderboard.

My question is, who does this kill count for?
Will it count for me(player 1).. or is it an anonymous kill?
I cant have it be a kill for Player 1... Because i don't want it to count towards Player 1's kill counter since it's a leak.

I can't use the Remove Unit trigger... because a diff trigger will mess up... the leak must go away via kill. I tried to make another computer cannon that auto kills leaks... but i couldnt get that to work either.
 

XxMayhemxX

New Member
Reaction score
6
Dang it.. I tested it.. and sure enough.. when the kill unit trigger triggered, it counted as a kill for me.

Im sure theres a way to make it count the kill for a diff player tho.. not sure how...

In staredit i could specify the trig belonging to player whoever.. i dont see that option in galaxy.. maybe since its beta..
 

sqrage

Mega Super Ultra Cool Member
Reaction score
514
I think you have something mixed up... It doesn't count it as a kill for player 1 when I did it.

kill trigger
Trigger:
  • kill
    • Events
      • Unit - Any Unit Enters DEATH
    • Local Variables
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)


test trigger
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - Any Unit dies
    • Local Variables
    • Conditions
      • (Killing player) == 1
    • Actions
      • UI - Display "fuckk " for (All players) to Chat area

Text was not displayed.

test trigger take 2
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - Any Unit dies
    • Local Variables
    • Conditions
      • (Killing player) != 1
    • Actions
      • UI - Display "fuckk " for (All players) to Chat area

Text was displayed.
 

XxMayhemxX

New Member
Reaction score
6
My second post is the about the Kill trigger, which i didnt post... which at the moment isn't working well at all together with the Leaks Trigger, which IS the one i posted.

the code i posted above takes 1 life away from player 1 every time player 15 leaks 1 unit.

The kills part of it is diff... I just thought i could fix the issue by killing the leaks.. but because of my kill trigger... THOSE leak kills count for P1 as well...

Don't ask it's a mess...
 

XxMayhemxX

New Member
Reaction score
6
Actually since these are basically about the same issue...

Could a Mod please merge these 2 topics? thnaks

I started the second one just asking about Events and Conditions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top