Difference between revisions of "Game"
(→StartLoginCinematic) |
(→StopLoginCinematic) |
||
Line 294: | Line 294: | ||
=== StopLoginCinematic === | === StopLoginCinematic === | ||
'''Definition:'''<br> | '''Definition:'''<br> | ||
− | StopLoginCinematic() | + | StopLoginCinematic() |
<br><br> | <br><br> | ||
'''Description:''' <br> | '''Description:''' <br> | ||
Line 300: | Line 300: | ||
<br><br> | <br><br> | ||
'''Arguments:''' <br> | '''Arguments:''' <br> | ||
− | + | none | |
<br><br> | <br><br> | ||
'''Returns:''' <br> | '''Returns:''' <br> | ||
− | + | none | |
<br><br> | <br><br> | ||
− | '''Example:''' | + | '''Example:'''<br> |
+ | <source lang="lua">Game.StopLoginCinematic()</source> | ||
<br><br> | <br><br> |
Revision as of 10:29, 3 March 2009
Contents
- 1 Functions
- 1.1 DisableInput
- 1.2 EnableInput
- 1.3 GetCVar
- 1.4 GetClientBuildNumber
- 1.5 GetDesiredSpeed
- 1.6 GetFlightMode
- 1.7 GetNFZMode
- 1.8 GetObjectAtScreenPos
- 1.9 GetTurretHealth
- 1.10 GetTurretObjectID
- 1.11 Quit
- 1.12 SetCVar
- 1.13 SetDesiredSpeed
- 1.14 SetInputMode
- 1.15 SetJumpDest
- 1.16 StartLoginCinematic
- 1.17 StopLoginCinematic
Functions
DisableInput
Definition:
DisableInput() -> ?
Description:
Arguments:
?
Returns:
?
Example:
EnableInput
Definition:
EnableInput()
Description:
Arguments:
none
Returns:
nothing
Example:
Game.EnableInput()
GetCVar
Definition:
GetCVar(string name) -> result
Description:
Returns the value of a C variable(?)
I'm assuming that the term CVar refers to an ingame variable not directly accessible by Lua
Arguments:
name name of the variable.
Returns:
The value or nil
Example:
print(Game.GetCVar("rRenderStationInMenu")) -- output: 1 or 0, ie. true/false if Game.GetCVar("autoaim") == 1 then print("autoaim is on") end print(Game.GetCVar("rHUDxscale")) -- output: 900 if Game.GetCVar("filterchannelmsgs") == 1 then print("Channel Messages are being filtered") end
GetClientBuildNumber
Definition:
GetClientBuildNumber() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetDesiredSpeed
Definition:
GetDesiredSpeed() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetFlightMode
Definition:
GetFlightMode() -> boolean
Description:
Arguments:
?
Returns:
?
Example:
local a = Game.GetFlightMode() print tostring(a).." ("..type(a)..")" -- outputs: true (boolean)
GetNFZMode
Definition:
GetNFZMode() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetObjectAtScreenPos
Definition:
GetObjectAtScreenPos() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetTurretHealth
Definition:
GetTurretHealth() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetTurretObjectID
Definition:
GetTurretObjectID() -> ?
Description:
Arguments:
?
Returns:
?
Example:
Quit
Definition:
Quit() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetCVar
Definition:
SetCVar() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetDesiredSpeed
Definition:
SetDesiredSpeed() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetInputMode
Definition:
SetInputMode() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetJumpDest
Definition:
SetJumpDest() -> ?
Description:
Arguments:
?
Returns:
?
Example:
StartLoginCinematic
Definition:
StartLoginCinematic()
Description:
Arguments:
none
Returns:
none
Example:
Game.StartLoginCinematic()
StopLoginCinematic
Definition:
StopLoginCinematic()
Description:
Arguments:
none
Returns:
none
Example:
Game.StopLoginCinematic()