Inherits DynamicConsoleMethodComponent.
Inherited by Scene, and SceneObject.
|
| bool | addBehavior (BehaviorInstance bi) |
| |
| void | clearBehaviors () |
| |
| bool | connect (outputBehavior, inputBehavior, outputName, inputName) |
| |
| bool | disconnect (outputBehavior, inputBehavior, outputName, inputName) |
| |
| int | getBehavior (string BehaviorTemplateName) |
| |
| int | getBehaviorByIndex (int index) |
| |
| string | getBehaviorConnection (outputBehavior, outputName, connectionIndex) |
| |
| int | getBehaviorConnectionCount (outputBehavior, outputName) |
| |
| int | getBehaviorCount () |
| |
| bool | raise (outputBehavior, outputName,[deltaTime]) |
| |
| bool | removeBehavior (BehaviorInstance bi,[bool deleteBehavior=true]) |
| |
| bool | reOrder (BehaviorInstance inst,[int desiredIndex=0]) |
| |
Add a behavior to the object
- Parameters
-
| bi | The behavior instance to add |
- Returns
- (bool success) Whether or not the behavior was successfully added
Clear all behavior instances
- Returns
- No return value
| bool connect |
( |
outputBehavior |
, |
|
|
inputBehavior |
, |
|
|
outputName |
, |
|
|
inputName |
|
|
) |
| |
Connects a behavior output to a behavior input.
- Parameters
-
| outputBehavior | The behavior that owns the output. |
| inputBehavior | The behavior that owns the input. |
| outputName | The output name owned by the output behavior. |
| inputName | The input name owned by the input behavior. |
- Returns
- (bool success) Whether the connection was successful or not.
| bool disconnect |
( |
outputBehavior |
, |
|
|
inputBehavior |
, |
|
|
outputName |
, |
|
|
inputName |
|
|
) |
| |
Connects a behavior output to a behavior input.
- Parameters
-
| outputBehavior | The behavior that owns the output. |
| inputBehavior | The behavior that owns the input. |
| outputName | The output name owned by the output behavior. |
| inputName | The input name owned by the input behavior. |
- Returns
- (bool success) Whether the disconnection was successful or not.
| int getBehavior |
( |
string |
BehaviorTemplateName | ) |
|
gets a behavior
- Parameters
-
| BehaviorTemplateName | The name of the template of the behavior instance you want |
- Returns
- (BehaviorInstance bi) The behavior instance you requested
| int getBehaviorByIndex |
( |
int |
index | ) |
|
Gets a particular behavior
- Parameters
-
| index | The index of the behavior to get |
- Returns
- (BehaviorInstance bi) The behavior instance you requested
| string getBehaviorConnection |
( |
outputBehavior |
, |
|
|
outputName |
, |
|
|
connectionIndex |
|
|
) |
| |
Gets a comma-delimited list of connections on the behavior output on the specified behavior.
- Parameters
-
| outputBehavior | The behavior that owns the output. |
| outputName | The output name owned by the output behavior. |
| connectionIndex | The connection index. |
- Returns
- Returns a comma-delimited list of connections on the behavior output on the specified behavior of the format <OutputBehavior>,<InputBehavior>,<OutputName>,<InputName>.
| int getBehaviorConnectionCount |
( |
outputBehavior |
, |
|
|
outputName |
|
|
) |
| |
Gets the number of connections on the behavior output on the specified behavior.
- Parameters
-
| outputBehavior | The behavior that owns the output. |
| outputName | The output name owned by the output behavior. |
- Returns
- The number of connections on the behavior output on the specified behavior.
Get the count of behaviors on an object
- Returns
- (int count) The number of behaviors on an object
| bool raise |
( |
outputBehavior |
, |
|
|
outputName |
|
|
) |
| |
Raise a signal on the behavior output on the specified behavior.
- Parameters
-
| outputBehavior | The behavior that owns the output. |
| outputName | The output name owned by the output behavior. |
| [deltaTime] | Optional time-delta (ms) when the raise should occur. |
- Returns
- (bool success) Whether the signal raise was successful or not.
- Parameters
-
| bi | The behavior instance to remove |
| deleteBehavior | Whether or not to delete the behavior |
- Returns
- (bool success) Whether the behavior was successfully removed
- Parameters
-
| inst | The behavior instance you want to reorder |
| desiredIndex | The index you want the behavior instance to be reordered to |
- Returns
- (bool success) Whether or not the behavior instance was successfully reordered