Code Reference

This section contains information about using TargetPRO from scripts

There are two sides to TargetPRO:
  1. Acquiring targets and accesing them via event delegates (or directly from class members) and hit-effect information.

  2. Working with targets using the cached object model structure.

The TargetPRO Object Model

TargetPRO is an object model and framework for accessing your targets and source components without any overhead via cached references.  This is extremely powerful. For example, when a target is hit, you have access to the position of the transform which owned the TargetTracker that launched the projectile that hit the target. E.g.:


This could be handy if you want to trigger a negative effect on something when a target is hit, for example, touching a cactus might hurt the owner of the TargetTracker.