Skip to content

QuantumLeap-Studios/MMScriptTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Mango Monkeys Scripting Docs

Deployment

To deploy this project run

  git clone https://github.com/QuantumLeap-Studios/MMScriptTemplate.git

Functions

Find all of the functions Here

Demo

Plain

-- Ran first
function main()
  log("Hello, world!")  
end

-- Runs every second
function tick()
  log("Tick!")
end

Maps

-- the basic script itself
function main()  
    log("Hello, world!")  
end

-- runs every second
function tick()
    log("A tick has ran!")
end

-- when the touch event is ran
-- can only be used if you add "onTouched" to your SEF!
function onTouched()
    log("I got touched!")
end

-- this is the same as main and will be ran at almost the exact same time, use this when the map has finished loading
-- can only be used if you add "onAwake" to your SEF!
function onAwake() 
    log("Hello world, again!")
end

-- an example function for respawning, made for the simple obby map template
function Respawn()
    SetPlayerPosition(Vec3_new(56.73595, -5.069687, -61.9714))
end

Authors

About

A template

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages