Is-selected Condition

From AgentCubes
Jump to navigation Jump to search

Is selected action.png


True if the agent is selected.

An agents is selected by a user clicking it. A selected agent can be recognized by a yellow hello.

Parameters: none
Example: If you have many agents of the same type but like to have only one of them be cursor key controlled then make the user click the agent to select it and write cursor key rules which will also check if the agent is selected. This way only one agent can be selected at one time and only this agent would be controlled through cursor keys.