Script

This is a custom module where you can use C++ to implement the module events.

On each event, you have two variable as input that you can use to access various data:

  • agent: is an AgentWrapper object. You can use it to access agent metadata, or pose transforms.

  • agentGroup: is an AgentGroupWrapper object. You can use it to access other agents or do space queries.

Attributes

Type

Overridable

Description

Attributes

Type

Overridable

Description

agentsCreated

string

no

Event called when an agent is created.

agentsKilled

string

no

Event called when an agent is destroyed.

initFrame

string

no

Event called for each agent at the beginning of the frame.

endFrame

string

no

Event called for each agent at the end of the frame.


/

You can find here all the classes and functions that you can use.

When you modify the code of one of the event press CTRL+Return to compile it or just rewind your scene.

 

Examples

Add a random vector3 metadata

 

image-20241016-115509.png

 

 

Modify agent direction

 

image-20241016-115635.png

Print agent info

 

 

Copyright © 2017, Toolchefs LTD.