spacemishka Posted September 25, 2021 Share Posted September 25, 2021 Hi there, what is wrong with this line? OscarIran = SPAWN:New( "Oscar"):InitRepeatOnEngineShutDown():InitRandomizeRoute(0,0,10000):InitLimit( 1, 2 ):InitCleanUp(600)SpawnScheduled(30,0):SpawnAtAirbase( AIRBASE:FindByName( AIRBASE.PersianGulf.Bandar_e_Jask_airfield ), SPAWN.Takeoff.Hot ) I am getting this error which doesnt tell much: attempt to index global 'SPAWN' (a nil value) The template is names Oscar either group and pilot. I got this from the Sample SPS-131 just changed it a little. thanks Peter Link to comment Share on other sites More sharing options...
CL30 Posted September 25, 2021 Share Posted September 25, 2021 (edited) I am still learning MOOSE, but do you need spaces between the parenthesis in some of those? ( "Oscar" ); ( 0, 0 , 10000 ); ( 600 ); ( 30, 0 ) ?? I'm sure someone that actually knows MOOSE will chime in though! Edited September 25, 2021 by CL30 i5-9600k @ 5.0 GHz| Gigabyte Z390 Aorus Master | 32 GB Trident G.Skill RAM @ 3200 MHz | Thermaltake Floe Riing 360 AIO | Samsung EVO 860 500 GB SSD | Crucial MX500 500 GB M.2 | SanDisk 1TB SSD | EVGA RTX 2080 Ti Ultra Gaming | EVGA G3 850W Gold PSU | Thermaltake View 71 TG Snow Edition | Thrustmaster Warthog HOTAS | MFC Crosswind pedals | Oculus Rift-S [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
spacemishka Posted September 25, 2021 Author Share Posted September 25, 2021 No the spaces do not matter.... Link to comment Share on other sites More sharing options...
spacemishka Posted September 25, 2021 Author Share Posted September 25, 2021 my bad...had a delay for loading the Moose.lua,..so the script self was loaded earlier Link to comment Share on other sites More sharing options...
CL30 Posted September 26, 2021 Share Posted September 26, 2021 8 hours ago, spacemishka said: No the spaces do not matter.... Ok cool, I learned something then! i5-9600k @ 5.0 GHz| Gigabyte Z390 Aorus Master | 32 GB Trident G.Skill RAM @ 3200 MHz | Thermaltake Floe Riing 360 AIO | Samsung EVO 860 500 GB SSD | Crucial MX500 500 GB M.2 | SanDisk 1TB SSD | EVGA RTX 2080 Ti Ultra Gaming | EVGA G3 850W Gold PSU | Thermaltake View 71 TG Snow Edition | Thrustmaster Warthog HOTAS | MFC Crosswind pedals | Oculus Rift-S [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Recommended Posts