View Full Version : Setdammage on Objects?
Intruder_360
Dec 5 2006, 08:15
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
Yes.
DOES NOT WORK IN ARMED ASSAULT, use nearestObject (http://community.bistudio.com/wiki/nearestObject_id) id instead.
Intruder_360
Dec 5 2006, 10:08
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
nearestObject 444823 maybe?
I heard someone say you needed a space between Object and number.
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).
@<hidden>
Just tried it in the editor and it doesn't work for me, too. No idea what to do, sorry http://forums.bistudio.com/oldsmileys/sad_o.gif
MfG Medicus
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 [/QUOTE]
When it says it expected array it was looking for the position array.
see Biki - nearestObject (http://community.bistudio.com/wiki/nearestObject_id)
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[/QUOTE]
Benny212
Dec 9 2006, 21:53
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)
Hadrian_21VB
Dec 14 2006, 11:20
Got the same problem on Radio towers etc.
Can't address them. http://forums.bistudio.com/oldsmileys/crazy_o.gif
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[/QUOTE]
Works for me just tested it on a bridge http://forums.bistudio.com/oldsmileys/yay.gif
Hadrian_21VB
Dec 14 2006, 15:44
Great that works !! http://forums.bistudio.com/oldsmileys/wink_o.gif
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 ?
Benny212
Dec 14 2006, 21:08
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)
Hadrian_21VB
Dec 15 2006, 06:00
Thanks, I will put that into tonights mission editing http://forums.bistudio.com/oldsmileys/xmas_o.gif
Deadfast
Dec 15 2006, 11:41
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
[/QUOTE]
Can we somehow get tanks to have a correct damage effect then and stop one shot one kill
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.