OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mikeb on 25 Aug 2002, 15:14:13

Title: Hiding bodies without being BlackOps
Post by: mikeb on 25 Aug 2002, 15:14:13
Hey all,

Does anyone know how to give a non-blackops player the ability to hide bodies?

MikeB
Title: Re:Hiding bodies without being BlackOps
Post by: mikeb on 25 Aug 2002, 15:15:56
...oh yeah.... and doe hiding bodies in SP actually make a difference?  Sometimes in my missions I've created, guys don't even look twice (There isn't an extra bit of code you need to write is there?
Title: Re:Hiding bodies without being BlackOps
Post by: Messiah on 25 Aug 2002, 16:29:24
theres a script to  check if bodies are hidden and then u can make the ai react accordingly
Title: Re:Hiding bodies without being BlackOps
Post by: Wolfrug on 25 Aug 2002, 19:46:26
Yes, found in our snippets section. Hmmmm. damn :)

i don't have it, but if anyone else does, please attach if you feel like it  ;)

in SP, no, not really. It's war, after all, why should the AI get all upset over some dead comrades lying about. Except if they're on guard duty. But hey, that's what we've got scripting for! :toocool:

Hm, it's probably possibly yes: the "hide body" is really exactly what it looks like: sinking the body below the ground. So scripting it is relatively easy, basically what you would need is a script which checks for any dead units in your vicinity, and then "addactions" a new "Hide Body" action once you're close enough (and executes the "grab item" animation).

Don't have time to write it down & playtest it right now though...hmm.  :P Ah well...

Wolfrug out.
Title: Re:Hiding bodies without being BlackOps
Post by: Gastovski on 26 Aug 2002, 00:40:52
The cript to check if a body is hidden checks the height of a body. If it is less than 0 it is true...
Title: Re:Hiding bodies without being BlackOps
Post by: mikeb on 26 Aug 2002, 03:13:22
Oh OK!!

I think I can write one then so I'll solve this problem for now.  The fact that the script does/will exist in the new site means that I shouldn't  :-\ have to check this again!

Cheers all

M