Intruder_360 0 Posted December 5, 2006 Hi, i cant set dammage on a object. I ofp it was possible with "(object(44567)) setdammage 1". In ArmA it doesnt work. Any Idea? Regards Intruder Share this post Link to post Share on other sites
raedor 8 Posted December 5, 2006 Yes. DOES NOT WORK IN ARMED ASSAULT, use nearestObject id instead. Share this post Link to post Share on other sites
Intruder_360 0 Posted December 5, 2006 Hi raedor thanks for your fast answer, i will try it later. Edit: furthermore problems with objects. I did try it with "nearestobject444823 setdammage 1", but the bridge was not destroyed. Regards Intruder Share this post Link to post Share on other sites
Kirby 2 Posted December 5, 2006 nearestObject 444823 maybe? I heard someone say you needed a space between Object and number. Share this post Link to post Share on other sites
MEDICUS 0 Posted December 5, 2006 I heard someone say you needed a space between Object and number. With a space between "nearestObject" and the ID you'll get an error (Type Number, expeced Array). @Intruder_360 Just tried it in the editor and it doesn't work for me, too. No idea what to do, sorry MfG Medicus Share this post Link to post Share on other sites
hoz 0 Posted December 5, 2006 You need to do something like this... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">position player nearestobject 1111 When it says it expected array it was looking for the position array. see Biki - nearestObject Share this post Link to post Share on other sites
surpher 1 Posted December 9, 2006 Place a GameLogic on the object you want to destroy and give it a name, then add a line similar to this in the initialization, just edit the Game Logic name and object ID. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(position GLname nearestObject 606829) setDammage 1 Share this post Link to post Share on other sites
Benny212 0 Posted December 9, 2006 the command ive been using is position player nearestobject 1111 setdammage 1 where 1111 is the id number, this works with normal buildings however when i tried this on a bridge my game crashed (havent tryed it on any other bridges so its worth trying) Share this post Link to post Share on other sites
Hadrian_21VB 0 Posted December 14, 2006 Got the same problem on Radio towers etc. Can't address them. Share this post Link to post Share on other sites
mattxr 9 Posted December 14, 2006 Place a GameLogic on the object you want to destroy and give it a name, then add a line similar to this in the initialization, just edit the Game Logic name and object ID.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(position GLname nearestObject 606829) setDammage 1 Works for me just tested it on a bridge Share this post Link to post Share on other sites
Hadrian_21VB 0 Posted December 14, 2006 Great that works !! Now I need the system to repport that it is no more Im using the radiomast in Sahrani GB-27 "Not alive ??" hint "Booom" (not name of the gamelogic apperently and not object219162 and not object 219162) Any suggestions ? Share this post Link to post Share on other sites
Benny212 0 Posted December 14, 2006 not alive (position player nearestobject 219162) that should work, worked ok for me oh and my other command "position player nearestobject 1111 setdammage 1" does work on bridges and all buildings ( had a chance to test it all) Share this post Link to post Share on other sites
Hadrian_21VB 0 Posted December 15, 2006 Thanks, I will put that into tonights mission editing Share this post Link to post Share on other sites
Deadfast 43 Posted December 15, 2006 You can also try this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ( damage (position player nearestObject 4971 )) >= 1 Share this post Link to post Share on other sites
breeze 0 Posted December 16, 2006 Can we somehow get tanks to have a correct damage effect then and stop one shot one kill Share this post Link to post Share on other sites