michaelm75au
Posts: 13500
Joined: 5/5/2001 From: Melbourne, Australia Status: offline
|
quote:
{'type',type='sensor',1} means change the damage level of a 'sensor' on the unit to 1 To damage a specific component, you need to supply the actual component GUID (you can't go by name as there could be multiple sensors with same name). quote:
{'16a883a2-8e7f-4313-aae7-0af644c16337',1} means change the damage level of the component '16a883a2-8e7f-4313-aae7-0af644c16337' on the unit to 1 Sample quote:
specific SRBOC showing light damage Line 38: { [1] = { type = 'Mount', damage = Light, guid = 'ddbe1ca7-c298-45f9-b1f3-ade1d4d1f45c', status = Damaged, name = 'Mk36 SRBOC', dbid = 565 }, [2] = { status = Damaged, damage = Light, name = 'CIC' } } Set damage for specific SRBOC to medium Line 60: local a = ScenEdit_SetUnitDamage({name='AOE 421 Sagami', guid='004aa55d-d553-428d-a727-26853737c8f4',components={ {'ddbe1ca7-c298-45f9-b1f3-ade1d4d1f45c','Medium'},{'CIC','Light'} },flood=1}) Results in damage to specific component only Line 64: { [1] = { comp_status = Operational, comp_dbid = 1175, comp_guid = '04beaf43-9750-41f9-aa20-13f3d23c5cb1', comp_type = 'Sensor', comp_name = 'J/OPS-16C' }, [2] = { comp_status = Operational, comp_dbid = 0, comp_guid = '73121410-96b8-40ad-a555-5c3346ef723e', comp_type = 'Sensor', comp_name = 'Mk1 Eyeball' }, [3] = { comp_status = Operational, comp_dbid = 565, comp_guid = '4e0c45b0-2ebf-4244-8b32-fabedb359a7d', comp_type = 'Mount', comp_name = 'Mk36 SRBOC' }, [4] = { comp_status = Damaged, comp_damage = Medium, comp_dbid = 565, comp_guid = 'ddbe1ca7-c298-45f9-b1f3-ade1d4d1f45c', comp_type = 'Mount', comp_name = 'Mk36 SRBOC' }, [5] = { comp_status = Operational, comp_dbid = 565, comp_guid = 'bca76fa9-a511-41ec-a410-a07014d9d393', comp_type = 'Mount', comp_name = 'Mk36 SRBOC' }, [6] = { comp_status = Operational, comp_dbid = 565, comp_guid = '864d0d3f-a11e-4f5d-a22a-65771d38c5d1', comp_type = 'Mount', comp_name = 'Mk36 SRBOC' }, [7] = { comp_status = Operational, comp_dbid = 72, comp_guid = '248b48... Line 65: { [1] = { type = 'Mount', damage = Medium, guid = 'ddbe1ca7-c298-45f9-b1f3-ade1d4d1f45c', status = Damaged, name = 'Mk36 SRBOC', dbid = 565 }, [2] = { status = Damaged, damage = Light, name = 'CIC' } }
< Message edited by michaelm75au -- 1/31/2020 10:58:18 PM >
_____________________________
Michael
|