User Tools

Site Tools


crpl:docs:createlist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
crpl:docs:createlist [2013/07/21 09:44] – created thepenguincrpl:docs:createlist [2021/02/05 11:44] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~ + 
-<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#input_commands|Lists]]+<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#lists|Lists]]
 =====  CreateList  ===== =====  CreateList  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| None |An Empty List | '' -- l1'' |+| None |An Empty List | '' -- L1'' |
  
  
 === Description === === Description ===
-Checks the specified keyboard key to see if it is held down.  Returns true only while the key is held down. +Creates an empty list that can be stored in variable=== Examples === 
-For list of possible key strings, look here: +<code> 
-http://docs.unity3d.com/Documentation/ScriptReference/KeyCode.html +CreateList ->list01 
-=== Examples === +</code> 
-<code>if (GetKey("LeftArrow")) +
-   #Move unit left +
-endif +
-if (GetKey("RightArrow")) +
-   #Move unit right +
-endif</code> +
crpl/docs/createlist.1374414256.txt.gz · Last modified: 2014/10/01 15:02 (external edit)