GetTargetsInTrigger

From HEWIKI
Jump to: navigation, search

Contents

Get Targets In Trigger

GetTargetsInTrigger(triggerNode as NodeRef) as List of NodeRef

Arguments

<triggerNode> 
The trigger node you are checking for targets

Description

This function can be called in a script to learn what targets are currently in the passed trigger

For more target functions, see: Area Awareness

For more information about triggers see: Trigger Info

Example

// The following would print a list of all targets within a trigger
trigger as noderef = 1000202220 // ID # of the trigger of concern
 
targets = GetTargetsInTrigger(trigger)
foreach target in targets
  println(target.name+" is in the trigger area")
.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox