Event:map initialisation ( or whenever you want to add the unit to the group which kills the player when hes touching it) Boolream:/ Event: Add *thepatrolingunit* to PatrolGroup
Trigger 2.
Eventlayer1 choices a unit Player2 choices a unit and so on with all players who could be killed when they touch them Boolream:Triggering unit is in PatrolGroup equal to true Eventlayer-Defeat Triggering player show dialoges show scores
Hi! I'm new here so I'm adjusting. I'm currently on mapping... I think I can help you...
First thing first. Create a variable called "PatrolGroup (Unit Group or Unit)" then use this trigger.
Pur first the unit in the PatrolGroup variable
If the patrolling unit is in the map, then:
Events A unit comes within (100) range of (Your patrolling unit) Condition ---Nothing Here--- Actions Unit - Kill (Triggering Unit) --->If only you will just kill the unit Game - Defeat --->If you want to kick the player from the game.
Else, if the unit will be created in-game, use this: YOU NEED DUMMY UNIT FOR THIS. Events (The time where you want to create the unit) Conditions ---Nothing Here--- Actions Unit - Create (Your patrolling unit) at (where you want to put the unit) facing (Default building facing) degrees Set "PatrolGroup" = (last created unit) ---> if the variable is a Unit Unit Group - Put (last created unit) on (PatrolGroup) ---> if the variable is a Unit-Group Unit - Create 1 (Dummy Unit) at a range of (the range of the patrol) with offset 100.00 (or something) from PatrolGroup --> i forgot about this part. I'll check when I get home. Unit - Order PatrolGroup to Patrol at Position of last created unit (or store the the dummy unit in a variable if you like.)
Then, do this new trigger:
Events A unit comes within (100) range of (PatrolGroup) Condition ---Nothing Here--- Actions Unit - Kill (Triggering Unit) --->If you want to kill the unit Game - Defeat --->If you want to kick the player from the game.