Hi, I'm trying to get the game to play a sound specificaly for a player, I need it to play for the owner of the killing unit, im using costum script as directed but its not working.
The map tells me ive made an error and turns the trigger off :/
Here is my Trigger:
Gileneas is Conquered
The map tells me ive made an error and turns the trigger off :/
Here is my Trigger:
Gileneas is Conquered
-
Events
- Unit - King of Gilneas 0256 <gen> Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Killing unit)) Equal to Player 1 (Red)
- (Owner of (Killing unit)) Equal to Player 4 (Purple)
- (Owner of (Killing unit)) Equal to Player 5 (Yellow)
- (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Trigger - Turn off (This trigger)
- Wait 5.00 seconds
- Custom script: if GetLocalPlayer() == GetOwningPlayer(GetKilling()) then
- Sound - Play QuestCompleted <gen>
- Custom script: endif
- Unit - Remove (Triggering unit) from the game