-
Notifications
You must be signed in to change notification settings - Fork 2
LUA API Reference
mika edited this page Jan 22, 2018
·
29 revisions
- Animation Component
- Audio and Sounds
- Callback Events
- Client Control
- Controlling Modes & Scripts
- Creating GameObjects
- Debugging
- Flow Fields
- Interactive Objects
- Internal Variables
- Lines
- Math
- Moving and Scaling Objects
- Multiplayer
- Notifications
- PhotoSpheres
- Player
- Procedural Meshes
- Queries
- Saving/Loading Local Data
- Server Data & Logging
- Terrain
- Text
- Textures
- Using CommandServer Commands
- Using External Data
- Videos
- Working with GameObjects
- Common Errors
b = BinooAPI
b:CreateSphere("red",1,3,0,0)
b:AddGazeTarget("red")
b:AddEvent("red","CLICK","ClickCorrect","myparams")
function ClickCorrect(sender,params)
b:ShowMessage("Clicked "..tostring(sender).." with params "..tostring(params))
b:ClearObjects()
end
More examples: https://github.com/NTUSPMS/BinooAPI
- "ScriptRuntimeException: attempt to call a nil value", maybe you missed "b:" in front of the method? or "math." in front of "random()"