Gnasher Posted July 4, 2007 Share Posted July 4, 2007 Im using this function to create a destroyed battlefield before activating disposotion mode. I need a group of objects to be completely 100% destroyed, only problem is that this only seems to work for approx 50% of the units in the group. The others seem to recieve no damage at all as in testing I can crew the vehicles & they appear to be fully armed & functional. The code I'm using is : - </font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> SetWorkArmy ( Army , 2 ) DamageObject ( GROUP , "Group_Destroyed" , 100 ) ActivateDispositionMode ( "begin" ) ChangeFogOfWar ( DISABLE ) </pre> Link to comment Share on other sites More sharing options...
rofl Posted July 4, 2007 Share Posted July 4, 2007 I had the same problem. Destroy all singel units by unit ID, that works fine. Link to comment Share on other sites More sharing options...
dmg Posted July 5, 2007 Share Posted July 5, 2007 - Try to call DamageObject several times for the same group, putting Delay() between these calls. - Try to choose "less armoured" units for the damaged group. Link to comment Share on other sites More sharing options...
Gnasher Posted July 5, 2007 Author Share Posted July 5, 2007 Needed to run DamageObject several times, but works now thanks Link to comment Share on other sites More sharing options...
Jmayer Posted July 8, 2007 Share Posted July 8, 2007 try running a loop for "damageobject" Lable begin (objdistoryed) = x if x = (all) Then else begin somthing like that to count how many vehicles you start with and how many are destroyed so it loops till all vehicales are destroyed. Link to comment Share on other sites More sharing options...
Recommended Posts