PlayerController
InternalController
An internal controller that helps with controlling/manipulating the player.
PlayerController = Axis.GetController("PlayerController")
Functions
GetPlayerModule
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. YieldsPlayerController:
GetPlayerModule
(
ReturnAsModule:
boolean
--
Should it be returned as the actual module
) →
ModuleScript
|
{
[
any
]
:
any
}
Returns the player's PlayerModule
DisableControls
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. YieldsPlayerController:
DisableControls
(
) →
(
)
Disable the player's controls
EnableControls
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. YieldsPlayerController:
EnableControls
(
) →
(
)
Enable the player's controls
GetCharacter
This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts. YieldsReturns the player's cahracter