setDamage – Talk

From Bohemia Interactive Community
Revision as of 18:04, 31 January 2021 by Lou Montana (talk | contribs) (Text replacement - "ArmA2 " to "Arma 2 ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Effects not global? After testing (Arma 2 v1.05.62017) on a dedicated server with multiple clients, I believe that the effects of setDamage are not global. I conducted two rounds of tests. Round one involved using an addAction to manually setDamage a shack (Object ID 3137) on Utes to .5 and another addAction to display a hint. I executed the action on one client (client 1) and then displayed the hint which said .5. I then activated the hint on a second client (client 2) and the damage still showed 0. If I then shot the shack on client 1 and re-displayed the hint the damage incremented showing .51378. Then switching to client 2 I re-displayed the hint and it showed damage of .01378 which reflected the damage from bullets but not the previous setDamage on client 1. I thought perhaps since the effects of addAction are local that it influenced the results so in the second round of tests I disabled setDamage on the clients and instead had a server only script setDamage the shack to .5 and then send the damage level to the .rpt via diag_log. The .rpt showed .5 but hints on the clients on showed damage as 0. --Loyalguard 03:00, 26 March 2010 (CET)