Jump to content

MOOSE Problem with SPAWN


spacemishka

Recommended Posts

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

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 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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...