Logo

Unity Tools

  • Install / Update
  • A crash course on Unity
  • What’s possible?
  • What’s New?
  • Custom Tracks
  • Custom Ships
  • Shaders
  • Lua Scripting
    • Getting Started
    • User Variables
    • Functions Reference
    • API Reference
    • Performance Considerations
  • Neognosis Unity Tools

In-game

  • Installing Custom Content
  • Layout Creator
  • Custom Campaigns
  • Custom Liveries
  • Bloom Config Tool
  • Flare Config Tool
  • Virtual Palettes

Code Mods

  • Getting Started
  • C# Crash Course
  • BallisticNG Code Documentation
  • Custom Huds
  • Assets API
  • Results Screen API
  • Tutorials
BallisticNG
  • Docs »
  • <no title> »
  • Lua Scripting
  • Edit on GitLab

Lua Scripting¶

Lua Scripting

  • Getting Started
    • Learn By Example
    • Create a Lua script
    • Create Lua Runner
    • Debugging Lua Scripts
    • So what exactly can I do with Lua?
  • User Variables
    • Create a variable
    • Declare User Variables
  • Functions Reference
    • Global Scope
    • Awake()
    • Start()
    • Update(unscaledDeltaTime, deltaTime)
    • FixedUpdate(deltaTime)
    • OnShipEnter(ship)
    • OnShipExit(ship)
    • OnBehaviourEnter(behaviour)
    • OnBehaviourExit(behaviour)
    • OnCountdownStart()
    • OnCountdownStageTriggered(stage)
    • OnCountdownEnd()
    • OnAllShipsSpawned()
    • OnEventComplete()
    • OnShipSpawned(ship)
    • OnShipExploded(ship)
    • OnShipHitSpeedPad(ship, pad)
    • OnShipHitWeaponPad(ship, pad)
    • OnShipHitSpeedTile(ship, tile)
    • OnShipHitWeaponTile(ship, pad)
    • OnShipFinished(ship)
    • OnShipTeleported(oldPos, oldRot, ship)
    • OnShipLapUpdate(ship)
  • API Reference
    • Reference Variables
    • Static Calls
      • Mathf
      • Physics
      • RenderTexture
      • RenderSettings
      • Object
      • GameObject
      • Color
      • Color32
      • Camera
      • Vector2
      • Vector2Int
      • Vector3
      • Vector3Int
      • Vector4
      • Quaternion
      • Matrix4x4
      • Texture2D
      • Sprite
      • Material
      • Time
      • TrackData
      • RaceManager
      • Ships
      • Race
      • NgAudio
      • Layers
      • LayersIds
      • PickupRegistry
      • NgMenuContentManager
      • Api
        • GamePaused()
        • GetType(obj)
      • GetInstanceField(obj, fieldName)
      • GetField(obj, fieldName)
      • GetInstanceProperty(obj, propName)
      • GetProperty(obj, propName)
        • AddComponent(gameObject, type)
        • GetComponent(gameObject, type)
      • Easing
  • Performance Considerations
    • Does it already exist?
    • Get rid of functions you’re not using
    • Put briefly, the dos and the donts
    • Tick rates and you
Next Previous

© Copyright 2020, Neognosis Revision 1460161d.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.