Debug Lua API: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 7: Line 7:
<syntaxhighlight source lang="lua">Debug.ConnectToDevLaptop()</syntaxhighlight>
<syntaxhighlight source lang="lua">Debug.ConnectToDevLaptop()</syntaxhighlight>
'''Description''': Open SSH connection to DevLaptop Device, if there's one in the level.
'''Description''': Open SSH connection to DevLaptop Device, if there's one in the level.
'''Returns''': Nothing
=== TeleportPlayer ===
<syntaxhighlight source lang="lua">Debug.TeleportPlayer(spawnPointName)</syntaxhighlight>
'''Expected parameter types'''
{| class="wikitable"
|-
! Name !! Type
|-
| spawnPointName || string
|}
'''Description''': Teleport player to a SpawnPoint in level.


'''Returns''': Nothing
'''Returns''': Nothing
Line 27: Line 40:
This file is auto generated, please don't edit manually!
This file is auto generated, please don't edit manually!


'''Docs last hacked together on''': 13/10/2021 15:55
'''Docs last hacked together on''': 29/08/2023 16:24
[[Category:Modding]][[Category:LuaAPI]]
[[Category:Modding]][[Category:LuaAPI]]

Latest revision as of 14:11, 29 August 2023

Debug

Description

Debugging & Testing tools

Functions

ConnectToDevLaptop

Debug.ConnectToDevLaptop()

Description: Open SSH connection to DevLaptop Device, if there's one in the level.

Returns: Nothing

TeleportPlayer

Debug.TeleportPlayer(spawnPointName)

Expected parameter types

Name Type
spawnPointName string

Description: Teleport player to a SpawnPoint in level.

Returns: Nothing

ShowPlayerPath

Debug.ShowPlayerPath(value)

Expected parameter types

Name Type
value bool

Description: ShowPlayerPath

Returns: Nothing


This file is auto generated, please don't edit manually!

Docs last hacked together on: 29/08/2023 16:24