Behaviour Parameters
Below you will see the classes and descriptions of their variables, the JU TPS AIs use these classes to create specific behaviors in the NPC.
Field Of View
With this, the NPC can detect targets and obstacles within a specific radius and angle.
Enabled
Enable/disable the sensor.
Distance
Max view distance.
Angle
View angle in degrees.
Refresh Rate
Scan interval in seconds.
Max Detections
Max number of targets detected.
Targets Layer
Layer mask for targets.
Obstacles Layer
Layer mask for obstacles blocking view.
Target Tags
Specific tags to detect.
Pivot
Reference transform for view origin.
Hear Sensor
NPC can detect targets by sound
Enabled
Enable/disable sound detection.
Sounds To Ignore
JU Tag of sounds to ignore.
On Hear
Event called when the sensor detects a sound
Move Random Around Point
NPC randomly walks around a target
Range
Random walk range.
Change Destination Interval
Time to pick new destination.
Start Run Distance
Distance to start running.
Stop Distance
Distance to stop moving.
Use Fire Pose
Use fire pose while moving.
Look At Mode
Look direction mode.
Change Look Direction Interval
Time between look direction changes.
Max Look At Angle
Max angle when looking at direction.
Move Random Inside Area
Moves randomly within a defined area
Use Fire Pose
Use fire pose while moving inside area
Run
Run inside area
Stop Distance
Stop distance
Change Destination Time
Time to pick new destination.
Escape
With this the NPC can escape from dangerous things like a grenade
Name
Escape area name.
Area Tag
Area tag to detect escape zones.
Escape Only If On View
Escape only if danger is visible.
Block Gun Attacks
Disable shooting while escaping.
Max View Angle
View angle for area detection.
Obstacles Layer
Obstacle layer for line of sight.
Behavior (Run)
Whether to run when escaping.
Follow Waypoint
Follow a path of predefined waypoints
Run
Enable running on path.
End Path Mode
Behavior at end of path (invert, stop, etc.).
Reverse Path
Follow path in reverse.
Stop Distance
Distance to stop at waypoint.
Follow Point
Follow a target
Stop Distance
Stop distance from target position.
Start Run Distance
Distance to start running.
Use Fire Pose
Use fire pose while moving.
Damage Detector
Detects and looks at the side where it received damage
Look To Damage Direction Time
Time to look toward damage source.
Force Fire Pose
Force fire pose when hit.
Force Stop
Stop movement when hit.
Attack (Gun & Melee)
Performs the attack with both melee weapons and guns.
Min Distance
Min attack distance (gun).
Max Distance
Max attack distance (gun).
Start Run Distance
Distance to start running (gun).
Stop Distance
Distance to stop (gun).
If In Attack Area
Flank condition inside area.
If Closest To Target
Flank if closest to target.
Flank Randomly Interval
Flank change interval.
Precision
Shooting accuracy.
Max Shot Distance
Max bullet distance.
Obstacles Layer
Obstacles for shooting checks.
Fire Pose
When to use fire pose (Always/OnShoot).
Start Run Distance (Melee)
Distance to start running (melee).
Attack Distance (Melee)
Distance to perform melee attack.
Last updated