MOOSE - Mission Object Oriented Scripting Framework - Page 136 - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 11-18-2018, 08:06 AM   #1351
L39Tom
Junior Member
 
Join Date: Aug 2016
Posts: 28
Default

I got stucked and need some help.
Try to make a scipt to get heading and distance from a target plane. That works nice an smooth....but if I let the plane spawn randomly with the following code


Quote:
TargetTemplates = { "Target1","Target2","Target3","Target4","Target5","Target6","Target7" }
InterceptSpawnZone = ZONE:New ( "InterceptSpawn" )
ZoneTable = { InterceptSpawnZone }
Target = SPAWN
:New("target")
:InitLimit ( 1, 10 )
:InitRandomizeTemplate( TargetTemplates )
:InitRandomizeZones( ZoneTable )
:InitRandomizeRoute( 1, 2, 2000,20000)
--:InitDelayOn()
:SpawnScheduled( 2, 0.5 )
...I m not able to find the name of the plane. I know it is not "target" but something like "target#001".


Is there a nice methode to get the name/names from an late activated or randomly spawned object in order to deal with them ( : GetHeading(), :GetFuel()).



I that script above just one plane spawn. How to test multiple planes for heading/fuel/what ever?


Thanks for some supply
L39Tom is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:33 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.