This section contains information about using TargetPRO from scripts
There are two sides to TargetPRO: - Acquiring targets and accesing them via event delegates (or directly from class members) and hit-effect information.
- Working with targets using the cached object model structure.
The TargetPRO Object ModelTargetPRO 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.:
target.targetTracker.xform.position
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.
|
|