Difference between revisions of "Key Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Andri
Line 4: Line 4:
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
<td align="left" valign="top" width="100%">The <strong>Key</strong> condition checks if the key displayed in its Key parameter is pressed. If the key indicated is pressed, the condition is true. Otherwise, the condition is false. The Key condition can be used to assign real-time keyboard control to agents. You might use it to assign "hot key" values to get agents to act out specified actions when certain keys are pressed. To get Key conditions to function as hot keys you will have to place them in rules in a method that is checked at every simulation cycle. </td>
+
<td align="left" valign="top" width="100%">The <strong>Key</strong> condition checks if the key displayed in its Key parameter is pressed. If the key indicated is pressed, the condition is true. Otherwise, the condition is false. The Key condition can be used to assign real-time keyboard control to agents. You might use it to assign "hot key" values to get agents to act out specified actions when certain keys are pressed. To get Key conditions to function as hot keys you will have to place them in rules in a method that is checked at every simulation cycle.<br>
 +
''Please note that you cannot use the DELETE key as an argument for the key condition. It is reserved in the AgentCubes software for deleting text, and commands in behaviors.''
 +
</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>

Revision as of 20:07, 19 October 2011

Key condition.png

Definition: The Key condition checks if the key displayed in its Key parameter is pressed. If the key indicated is pressed, the condition is true. Otherwise, the condition is false. The Key condition can be used to assign real-time keyboard control to agents. You might use it to assign "hot key" values to get agents to act out specified actions when certain keys are pressed. To get Key conditions to function as hot keys you will have to place them in rules in a method that is checked at every simulation cycle.

Please note that you cannot use the DELETE key as an argument for the key condition. It is reserved in the AgentCubes software for deleting text, and commands in behaviors.

Parameters: key
Example: 500px