### startup ##################################################################################### ### For a script to run under TNTsim3D, it must include an instance of ### class TNTSIM3D named "TNTsim3D". The script must also be saved as an RVC ### object in the TNTsim3D Landscape File you want to run it with. ##################################################################################### # declare class instance for TNTsim3D interface class class TNTSIM3D TNTsim3D; class POINT3D viewer, orientation; numeric elev; ## set viewer position parameters viewer.x = 392702; viewer.y = 4106321; TNTsim3D.GetElevation(viewer, elev); viewer.z = elev + 1140; ## set orientation parameters of viewer in order ## pitch, roll, heading orientation.x = -3; # pitch orientation.y = 0; # roll orientation.z = 239; # heading # set scene using viewer position and orientation TNTsim3D.SetSceneByOrientation(viewer, orientation); # select and turn on sky raster TNTsim3D.LoadSky("sky6"); TNTsim3D.SetSky(1); # SML function name predefined in TNTsim3D, # called when any flight control is activated func OnControlActivate() { Exit(); }