Difference between revisions of "CommandLua"

From Baloogan Campaign Wiki
Jump to: navigation, search
Line 64: Line 64:
 
| '''[[ScenEdit_DeleteReferencePoint|ScenEdit_DeleteReferencePoint]]'''
 
| '''[[ScenEdit_DeleteReferencePoint|ScenEdit_DeleteReferencePoint]]'''
 
| Deletes a reference point.  
 
| Deletes a reference point.  
 +
|-
 +
| '''[[ScenEdit_Print|print]]'''
 +
| Evaluates an expression and writes it to the console window.
 
|}
 
|}

Revision as of 10:06, 22 November 2014

Tutorials

{{#ev:youtube|B4aUjddDHok}}

Reference

Command Lua API
Function Name Description Example
ScenEdit_SetWeather Set temperature, rainfall, cloud percentage and sea state.
ScenEdit_AddAircraft Creates a new aircraft in flight.
ScenEdit_AddShip Creates a new ship.
ScenEdit_AddSubmarine Creates a new submarine.
ScenEdit_AddFacility Creates a new facility.
ScenEdit_AssignUnitToMission Assigns a unit to a specified mission.
ScenEdit_SetSidePosture Sets the posture between two sides.
ScenEdit_SetEMCON Sets the state of the EMCON inheritable settings for a side, a missions, a group or a unit.
ScenEdit_RunScript Runs a script in your Lua directory.
ScenEdit_SetKeyValue Saves a variable into the scenario file.
ScenEdit_GetKeyValue Retrieves a variable from the scenario file.
ScenEdit_AddUnit Adds a unit.
ScenEdit_SetUnit Modifies a unit.
ScenEdit_DeleteUnit Deletes a unit.
ScenEdit_AddReferencePoint Adds a reference point.
ScenEdit_SetReferencePoint Modifies a reference point.
ScenEdit_DeleteReferencePoint Deletes a reference point.
print Evaluates an expression and writes it to the console window.