Im trying to make it so that you get a unit for killing a certain type of another unit, however I cant get around that killing your own guys also gives you that unit, what would be the trigger to make it that only killing an enemy unit gives you something?
whats wrong with this, it keeps making the units at the enemys starting position
Untitled Trigger 001
Events
Unit - Any Unit dies
Local Variables
Conditions
(Unit type of (Triggering unit)) == Zealot
Actions
Unit - Create 2 Marine for player (Triggering player) at (Start location of player (Owner of (Triggering unit))) using default facing (No Options)
Owner of Triggering unit is the owner of the unit that dies. So units will spawn in that players start location. I don't know if that is the player you intended or not. If it is, perhaps double check starting locations.
Im trying to make it so that you get a unit for killing a certain type of another unit, however I cant get around that killing your own guys also gives you that unit, what would be the trigger to make it that only killing an enemy unit gives you something?
If Owner of Triggering Unit != Owner of Killing Unit
Then GiveReward
whats wrong with this, it keeps making the units at the enemys starting position
Untitled Trigger 001 Events Unit - Any Unit dies Local Variables Conditions (Unit type of (Triggering unit)) == Zealot Actions Unit - Create 2 Marine for player (Triggering player) at (Start location of player (Owner of (Triggering unit))) using default facing (No Options)
Owner of Triggering unit is the owner of the unit that dies. So units will spawn in that players start location. I don't know if that is the player you intended or not. If it is, perhaps double check starting locations.
@Dystisis: Go
ha, thanks... just realised that i hadnt assigned starting positions to anyone, so it was just random, thanks!