You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the lua code below it is possible to to create a hybrid betwenn dynamic and static mission script Integration.
This allows a fast development of mission scripts without reintegration after every change.
But as soon as a good level is reached the script can be reintegrated and shared with others or uploaded to a server easily.
So we should add it to documentation under Advanced and add one demo mission as show case.
MissionScript=lfs.writedir() ..'/Missions/hello-world-dyn.lua'-- Use script file from hard disk instead of the one included in the .miz fileifstring.find( debug.getinfo(1).source, lfs.tempdir() ) thenlocalf=io.open(MissionScript,"r")
iff~=nilthenio.close(f)
env.info( '*** LOAD MOOSE MISSION SCRIPT FROM HARD DISK *** ' )
dofile(MissionScript)
doreturnendendend---- Simple example mission to show the very basics of MOOSE--MESSAGE:New( "Hello World! This messages is printed by MOOSE", 35, "INFO" ):ToAll():ToLog()
The text was updated successfully, but these errors were encountered:
With the lua code below it is possible to to create a hybrid betwenn dynamic and static mission script Integration.
This allows a fast development of mission scripts without reintegration after every change.
But as soon as a good level is reached the script can be reintegrated and shared with others or uploaded to a server easily.
So we should add it to documentation under Advanced and add one demo mission as show case.
The text was updated successfully, but these errors were encountered: