Jump to content

Uncharted 4 Programming Challenges


fireundubh

Recommended Posts

One point to start with would be to monitor the combat state of all enemies within a certain distance from the player. To do that, run an appropriate Find function and drag all enemies found in quest aliases. On the alias script, make an OnCombatStateChanged event and let this call a function on the quest script to update a specific endangering parameter (note that this function will need a thread lock). You'll probably need to develop an appropriate ranking for enemy types, their combat states and the distance from the player, so the endangering parameter will essentially be a sum of terms such as  Ei x Ci / Di where E and C are enemy and combat state specific constants, i is a running number denoting the enemy and D is the distamce of that enemy from the player. Once the endangering level increases beyond or drops below certain threshold values, the script will change alarm states.

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
×
×
  • Create New...