Jump to content

A question about aggro and music


Recommended Posts

It'd require you to edit the "dynamicmusic" component. In addition to the time-out, you'd want the update function to not stop the danger sound if the player (self.inst) has a target or something near the player (TheSim:FindEntities) targets the player. Since the later is rather resource-intensive, you should only check those criteria if the danger sound is actually playing and the delay is actually over (and if not, maybe add a bit of delay).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...