Jump to content
Sign in to follow this  
celery

Destroying miscellaneous objects

Recommended Posts

I need to destroy absolutely every object in a given radius but only buildings and units get blasted. Below is the script I'm using.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_select=0

everything=getpos light nearobjects 50

_maxcount=count everything

#damage

(everything select _select) setdammage 1

_select=_select+1

?_select<_maxcount:goto "damage"

I want nothing to stay intact, not even billboards or trees. Normally they fall when they get shot but setdammage doesn't seem to have any effect on them. How can I wreck those objects without using conventional explosives?

Share this post


Link to post
Share on other sites

it because treeas and billboards aren't find by nearobjects command (and by nearestobjects and another..etc )

in ofp you can find trees by nearestobject command in arma - not

Share this post


Link to post
Share on other sites
it because treeas and billboards aren't find by nearobjects command (and by nearestobjects and another..etc )

in ofp you can find trees by nearestobject command in arma - not

But how to destroy them?

Share this post


Link to post
Share on other sites

Create bombs near em. wink_o.gif

Share this post


Link to post
Share on other sites
Create bombs near em. wink_o.gif

Bombs aren't possible for my purposes.

Share this post


Link to post
Share on other sites
Create bombs near em. wink_o.gif

Bombs aren't possible for my purposes.

only bombs or other ammo (maybe many bullets ?...)

Share this post


Link to post
Share on other sites

I used a for-loop and "nearestobject ID", so I managed to destroy trees and walls, but this method isn't really accurate.

Master85

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×