OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Ding on 18 Feb 2007, 09:38:41
-
In operation flashpoint if I wanted to make an object such as a tree or fence to be destroyed I would find the objects ID and then use the command
(Object XXXX) setdammage 1
when I tried doing the same in Armed assault nothing happened, is there some different way of doing this for AA? or have I just made some mistake?
thanks, ding :)
Edit: Looking at the Comref it says the Object command is only for OFP, Is there a new command or somthing else along those lines?
-
us any of the nearest object commands with coordinates quite close to the object to want to use.
-
Strangely enough I tried to use that in a trigger and
(object 1090) setDamage 1caused an error saying missing ) ???
and using no () causes an error saying missing ;.....
I then tried
((position player) nearestObject 1090) setDamage 1And that seemed to destroy the object in question..
Don't know how far from the given position (player) it does that though. Tested from roughly 100 meters away and the object still got destroyed..
(the object was a bush)
-
From the BIKI:
http://community.bistudio.com/wiki/object
Since Armed Assault this command is no longer available due to terrain data streaming, you need to use extended variant of nearestObject instead.
http://community.bistudio.com/wiki/nearestObject_id
Position should be accurate, function is not guaranteed to find objects further than 50 m away.
-
Ah, that answers my 'wonderings' in another thread :P