Jump to content

Need help with script - DamageObject function


Gnasher

Recommended Posts

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

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

×
×
  • Create New...