|GeneralRulesSelectTargetSpriteFor Method |
Namespace: (Default Namespace)Assembly:
Default (in Default.exe) Version: 126.96.36.199
public virtual bool SelectTargetSpriteFor(
- Type: (Default Namespace)SpriteCollection
Collection from which sprite is selected
- Type: SystemInt32
0-based index within the collection of the sprite to be selected
- Type: SystemString
A global name (quoted string) to indicate for what this sprite is being selected
True if the specified index is within the bounds of the collection, False otherwise.
If the Index is beyond the bounds of the collection, the target reference cleared.
This function is useful in conjunction with SetTargetParameterFor(String, Int32, String)
to set properties of arbitrary sprites within a
collection to trigger various behaviors based on their rules, or get properties to affect
the currently executing rules based on other sprites.
allows you to select any number of sprites by assigning each a globally
unique name to be used by any plan or sprite rules. Only one sprite can ever be associated with that
target name at a time. Assigning another to that name will replace the existing target with the new
one. Specify -1 for Index
to clear selection for the specified target.