OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
...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?
-
theres a script to check if bodies are hidden and then u can make the ai react accordingly
-
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.
-
The cript to check if a body is hidden checks the height of a body. If it is less than 0 it is true...
-
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