When I'm spawning cargo units, I use play sound to play "ready" sound (I live for Aiur(c)Zealot etc.), but it plays for all players, there aren't function "triggering player".
So, is it possible, or I should use another action?
in a unit created trigger, you can call the unit that was created with CreatedUnit, from there you can find its owner and play the sound only for him/her.
This should play the sound for the owner of the unit that was created.
Hm, but does that work? I don't have the Galaxy editor available atm (if anyone have a Europe trial key to spare I would kill for one), but it seems to me that Owner of Triggering Unit stores a Player, not a Player Group.
My workaround for this has always been to make a player group and add Triggering Player to player group. Then afterwards clear the group. It seems unnecessary but at least I think it works.
Hm, but does that work? I don't have the Galaxy editor available atm (if anyone have a Europe trial key to spare I would kill for one), but it seems to me that Owner of Triggering Unit stores a Player, not a Player Group.
My workaround for this has always been to make a player group and add Triggering Player to player group. Then afterwards clear the group. It seems unnecessary but at least I think it works.
I think giving a player int works because the function is "Convert player to player group"
When I'm spawning cargo units, I use play sound to play "ready" sound (I live for Aiur(c)Zealot etc.), but it plays for all players, there aren't function "triggering player".
So, is it possible, or I should use another action?
Thanks
@Swifteg: Go
in a unit created trigger, you can call the unit that was created with CreatedUnit, from there you can find its owner and play the sound only for him/her.
@DarkShape80: Go
There isn't such function too. It seems, that it can't play sound for one concrete player.
And functions are:
Use the convert player to player group. All players is of unit group type while triggering player is of integer type
@progammer: Go
So it will play only for player 1?
@Swifteg: Go
This should play the sound for the owner of the unit that was created.
Hm, but does that work? I don't have the Galaxy editor available atm (if anyone have a Europe trial key to spare I would kill for one), but it seems to me that Owner of Triggering Unit stores a Player, not a Player Group.
My workaround for this has always been to make a player group and add Triggering Player to player group. Then afterwards clear the group. It seems unnecessary but at least I think it works.
@DarkShape80: Go
Thanks, I'll try it!
UPD: There is a triggering player function in the selecting of group. So here is the result, and it works.
Ty.
I think giving a player int works because the function is "Convert player to player group"