Jump to content
Sign in to follow this  
fish44

Hiding a body

Recommended Posts

Does hiding a body have any impact on the logic, or is it determined by how the mission is scripted. Is there any regonised effect of implementing this?

Share this post


Link to post
Share on other sites

Your question is very hard to understand. Could you please re-phrase it.

Share this post


Link to post
Share on other sites

He ment does the enemy actually notice a body and take action, or if when the body is hidden is actually serves a purpose smile_o.gif

Share this post


Link to post
Share on other sites

In my opinion, if you want AI soldiers to react to dead bodies somehow, you would need to script it.

For OFP people made such scripts, if you go to for example to http://www.ofpec.com/ you could maybe find such a script and try if it works out-of-the-box for ArmA, if not maybe modify it so that it does.

For example a search for "bodies" at OFPEC Editors Depot returns function guard2.sqf http://www.ofpec.com/ed_depo....earch=1

a function which could be usable.

Quote[/b] ]Allows guards to react to dead bodies. First parameter is an array of the guards, second parameter is how much the live guard must know about the dead body before the function returns true.

I am sure there is something else for this too out there somewhere, like some hidebody script by someone (I don't remember details about it) but guard2.sqf is what I could find fast.

Best Regards,

Baddo.

Share this post


Link to post
Share on other sites

Thanks baddo, your opinion is probably correct. But if anyone knows for 'certain' please respond.

Share this post


Link to post
Share on other sites

I've been experimenting with the hideBody and deleteVehicle commands recently so I can emulate a sustained battle without leaving more corpses than landscape. From what I've seen, applying hideBody is just a junk removal technique.

I haven't seen the AI react any differently with and without corpses. By default they only seem to react when the squadmate is killed and after that they move on. If you want them to do something because of the corpse then you'd have to script that I think.

I have noticed a difference on older computers performance though. Hiding the bodies trades off a very short processor hit for longer term graphics performance since the rendering engine dosen't have to draw all the bodies that accumulate.

I'm not sure if this is what you are looking for, but this is what I've observed.

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  

×