Difference between revisions of "Key Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
(Created page with "Category:AgentCubes_Conditions")
 
imported>Andri
Line 1: Line 1:
 +
[[image:Key condition.png|150px]]
 +
 +
<table cellpadding="10" cellspacing="0" border="0" width="100%">
 +
<tr>
 +
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 +
<td align="left" valign="top" width="100%">The <strong>Key</strong> 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. </td>
 +
</tr>
 +
<tr>
 +
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 +
<td align="left" valign="top" width="100%">[[Key parameter|key]]</td>
 +
</tr>
 +
<tr>
 +
<td align="left" valign="top" width="80"><b>Example:</b></td>
 +
<td align="left" valign="top" width="100%">
 +
[[Image:Key condition example.png|500px]]</td>
 +
</tr>
 +
 +
</table>
 +
 
[[Category:AgentCubes_Conditions]]
 
[[Category:AgentCubes_Conditions]]

Revision as of 20:35, 17 June 2011

Key condition.png

Definition: The Key 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.
Parameters: key
Example: 500px