ControllerType (Enum): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker mNo edit summary |
>Trappingnoobs Follows new enum syntax. |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| | {{Enum|The [[Enum]] ControllerType sets the controller for an object. It has 8 numbers:| | ||
{{Enum/row|0|None|Object is controlled by nothing.}} | |||
| | {{Enum/row|1|KeyboardRight|Object is controlled with keys U, H, J, and K.}} | ||
{{Enum/row|2|KeyboardLeft|Object is controlled with keys W, A, S, and D.}} | |||
{{Enum/row|3|Joypad1|}} | |||
{{Enum/row|4|Joypad2|}} | |||
{{Enum/row|5|Chase|Object chases the nearest player.}} | |||
|0 | {{Enum/row|6|Flee|Object runs from all players.}} | ||
|None | {{Enum/row|7|Player|Object is controlled by a player.}} | ||
|Object is controlled by nothing. | }}<noinclude> | ||
|1 | |||
|KeyboardRight | |||
|Object is controlled with keys U, H, J, and K. | |||
|2 | |||
|KeyboardLeft | |||
|Object is controlled with keys W, A, S, and D. | |||
|3 | |||
|Joypad1 | |||
| | |||
|4 | |||
|Joypad2 | |||
| | |||
|5 | |||
|Chase | |||
|Object chases the nearest player. | |||
|6 | |||
|Flee | |||
|Object runs from all players. | |||
|7 | |||
|Player | |||
|Object is controlled by a player. | |||
[[Category:Enums]]</noinclude> | [[Category:Enums]]</noinclude> |
Latest revision as of 20:53, 20 July 2011
The Enum ControllerType sets the controller for an object. It has 8 numbers: | ||
Enum | Name | Description |
0 | None | Object is controlled by nothing. |
1 | KeyboardRight | Object is controlled with keys U, H, J, and K. |
2 | KeyboardLeft | Object is controlled with keys W, A, S, and D. |
3 | Joypad1 | |
4 | Joypad2 | |
5 | Chase | Object chases the nearest player. |
6 | Flee | Object runs from all players. |
7 | Player | Object is controlled by a player. |