Targeting Function Category

Functions that deal with targeting.



Functions

NameBrief Description
FindSingleRangedTargetSeeks out an enemy more than 3m away
GetAttackTargetDetermines the current foe under attack by the specified creature.
GetAttemptedAttackTargetDetermines the last creature that an attempted attack was made on.
GetAttemptedSpellTargetDetermines the creature a spell was attempted to be cast at.
GetChangeInXConvenience function to calculate the change in the X axis
GetDistanceBetweenThe distance in meters between two objects
GetDistanceBetweenLocationsThe distance in meters between two locations in the game.
GetDistanceToObjectThe distance from the caller of the script to the object in meters.
GetFacingFromLocationGet the facing value from a location variable.
GetFactionBestACGet the member of a faction (party) who has the highest Armor Class.
GetFactionLeastDamagedMemberGet the member of oFactionMember's faction that has taken the fewest hit points of damage.
GetFactionMostDamagedMemberGet the member of oFactionMember's faction that has taken the most hit points of damage.
GetFactionWorstACGet the object faction member with the lowest armor class.
GetLastHostileActorGets the last living, non plot creature that performed a hostile act against the object.
GetLocationGets the location of an object.
GetMostDangerousClassUse the four archetypes to determine the most dangerous group type facing the NPC.
GetNearestSeenOrHeardEnemyDetermines closest visual creature and determines the closest heard creature.
LineOfSightObjectIs there a line of sight between two objects
LineOfSightVectorReturns whether there's a direct line between two positions
SetBehaviorStateSets an NPC's behavior.
ShoutDisturbedTurns NPCs of the container's faction hostile towards the PC that destroyed or opened the container.
VersusRacialTypeEffectSet eEffect to be versus nRacialType.

See Also

Function Categories