Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: May 2018
E
stranger
OP Offline
stranger
E
Joined: May 2018
In multiplayer specifically, is there an event that fires that I can hook when player "x" turn begins? I'd like to add audio queues when myself or other players turn begins.

Joined: May 2017
enthusiast
Offline
enthusiast
Joined: May 2017
Story scripts have an event for this, called ObjectTurnStarted. From that, you can then check if the object is a player, like so:

Code
IF
ObjectTurnStarted((CHARACTERGUID)_Player)
AND
CharacterIsPlayer(_Player, 1)
THEN
CharacterPlayHUDSound(_Player, "MySoundName");


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5