Skip to content

Script API

Cook Green edited this page May 30, 2018 · 15 revisions

Introduction:

AMGE has a individual script system like lua or python

Basic Information

Global Variable

Each global variable in the script file started with $

Local Variable

Each local variable in the script file started with %

API:

Script Command Param Description
add_light #1: Light Type
#2: Light Name
#3: Light Position X
#4: Light Position Y
#5: Light Position Z
#6: Light Direction X
#7: Light Direction Y
#8: Light Direction Z
Add a specific light to the scene with specific name
assign #1: Variable Name
#2: Variable value
Assign a value to a specific variable
call #1: Function Name Call a function with specific name
end None End Syntax
function #1: Function Name Start a function code region, and end with end
loop #1: Start Value
#2: End Value
#3: Step
Start a loop code region, and end with end
remove_light #1: Light Name Remove a light with specific name

Clone this wiki locally