Controller (Property): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "{{CatUp|Properties}} {{Property| name = Controller |property = Enum ''Controller'' |description = Sets how the object is controlled by the Controller Enum set. |object =...")
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}
 
'''This property has been removed and will not function.'''
{{Property|
{{Property|
name = Controller
name = Controller
Line 7: Line 7:
|object = [[GBX.lua.FlagStand (Object)|Flagstand]], [[GBX.lua.Part (Object)|Part]], [[GBX.lua.Model (Object)|Model]], [[GBX.lua.Seat (Object)|Seat]], [[GBX.lua.SpawnLocation (Object)|SpawnLocation]], [[GBX.lua.Workspace (Service)|Workspace]]
|object = [[GBX.lua.FlagStand (Object)|Flagstand]], [[GBX.lua.Part (Object)|Part]], [[GBX.lua.Model (Object)|Model]], [[GBX.lua.Seat (Object)|Seat]], [[GBX.lua.SpawnLocation (Object)|SpawnLocation]], [[GBX.lua.Workspace (Service)|Workspace]]
|}}
|}}


{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 1px solid #f00;"
{| class="wikitable" width=100% border="1" cellspacing="0" cellpadding="4" style="background-color: #fdd; border: 1px solid #f00;"
Line 48: Line 47:
|Object is controlled by a player.
|Object is controlled by a player.
|}
|}
[[Category:Properties]]

Latest revision as of 21:49, 23 September 2021

This property has been removed and will not function.

Property
Name Controller
Property Enum Controller
Description: Sets how the object is controlled by the Controller Enum set.
In Object: Flagstand, Part, Model, Seat, SpawnLocation, Workspace


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.