User Tools

Site Tools


crpl:docs:createlist

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Lists

CreateList

ArgumentsResultNotation
None An Empty List – l1

Description

Checks the specified keyboard key to see if it is held down. Returns true only while the key is held down. For a list of possible key strings, look here: http://docs.unity3d.com/Documentation/ScriptReference/KeyCode.html

Examples

if (GetKey("LeftArrow"))
   #Move unit left
endif
if (GetKey("RightArrow"))
   #Move unit right
endif
crpl/docs/createlist.1374414256.txt.gz · Last modified: 2014/10/01 15:02 (external edit)