Pikey Posted November 16, 2019 Posted November 16, 2019 I'm trying to track destroyed scenery in a mission. From an event I can get the ID only: {[iniUnit]={[sceneryObject]={[id_]=130779223,},[ClassName]=SCENERY,[sceneryName]=130779223,},[initiator]=,[id]=8,[iniObjectCategory]=5,[iniUnitName]=130779223,[iniCategory]=4,[time]=28822.709,[iniTypeName]=SCENERY,[iniDCSUnit]=,[iniDCSUnitName]=130779223,} So far I read that you can get a scenery object from world.search.objects. Unfortunately that requires a location, of which I don't know what it is, I need to come from the event data, which i'm saving then find the vec3 of the object. How do I get the location (vec3) using just '130779223'? ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Pikey Posted November 16, 2019 Author Posted November 16, 2019 Oh... Apparently the IniUnit from the event is the object. It will accept getCoord() directly... :( Which allows me to steal the coords and then store those... ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Recommended Posts