hello im Starforce (ingame) and i work on a Labyrinth map.I need help by doing the Triggers at _unit order
Situation : Every Player get a Hero and must be searching for the Exit gate, The Zergling wants to kill you and Spawn at the center of the Map
Problem : my trigger get an Bug, the zergling dont searching for me . here is my code =D ===
Unit - (Last created unit) command (Attack targeting (Position of Hero [(random integer between 1 and zerg multiplier)]) at) grant (to replace existing commands)
what is wrong ?X itry also as 1 player with no Random integer like (Position of Hero[1]) dont work = (
Example: (Zergling)
Create Zergling at point blahblah
Set ZerglingVariable = Last created unit
Event-
Every # seconds of game time (or whatever event you want, this might be where its messed up)
Conditions-
Unit ZerglingVariable is alive == true
Actions-
Unit- ZerglingVariable command (Attack targeting (Position of Hero[(random integer between 1 and zerg multiplier)]) and replace existing orders.
hello im Starforce (ingame) and i work on a Labyrinth map.I need help by doing the Triggers at _unit order
Situation : Every Player get a Hero and must be searching for the Exit gate, The Zergling wants to kill you and Spawn at the center of the Map
Problem : my trigger get an Bug, the zergling dont searching for me . here is my code =D ===
Unit - (Last created unit) command (Attack targeting (Position of Hero [(random integer between 1 and zerg multiplier)]) at) grant (to replace existing commands) what is wrong ?X itry also as 1 player with no Random integer like (Position of Hero[1]) dont work = (
You need to use variables.
Example: (Zergling)
Create Zergling at point blahblah
Set ZerglingVariable = Last created unit
Event-
Every # seconds of game time (or whatever event you want, this might be where its messed up)
Conditions-
Unit ZerglingVariable is alive == true
Actions-
Unit- ZerglingVariable command (Attack targeting (Position of Hero[(random integer between 1 and zerg multiplier)]) and replace existing orders.