Home   Help Search Login Register  

Author Topic: Hide bodies action  (Read 849 times)

0 Members and 1 Guest are viewing this topic.

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Hide bodies action
« on: 11 Dec 2005, 16:05:41 »
Is there any use in hiding bodies? Does the enemy react to the bodies? If so, is there different reactions dependent on what side the body origins from?

ZNorQ

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Hide bodies action
« Reply #1 on: 11 Dec 2005, 16:18:27 »
AI does not react to bodies unless you script it.  In my mission Defensive Strike there are static guards and some patrols.  I have a script that checks to see if the static guard is not alive and getPos select 2 < -0.5 (ie is it underground) and distance from a partol less than some small value 20 or so.  If the conditions are met (not alive, distance to patrol < 20 and getPos select 2 < -0.5) then an alarm is raised.

Note that hiding a body first puts it under ground (getPos select 2 goes to about -1 I think) and then after about a minute it gets moved a very long way away.

« Last Edit: 11 Dec 2005, 16:19:30 by THobson »

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:Hide bodies action
« Reply #2 on: 13 Dec 2005, 19:55:16 »
Hmm. Strange that BIS left in that function as apart of the Black Ops team, and it doesn't have any use. But thanks. I'll just have to make a script then I guess.. Could get though getting that to work if I'm gonna use it in a camp where there are 10-20 or more soldiers. I'm trying knowsAbout as we speak to see if I can use that...

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Hide bodies action
« Reply #3 on: 14 Dec 2005, 01:02:29 »
Knowsabout doesn't feel right for this .  I would think about distance

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:Hide bodies action
« Reply #4 on: 14 Dec 2005, 17:42:52 »
Actually, I did try knowsAbout - and he does detect and "knows about" dead body too - so it would work. The problem is testing the knowsAbout for maybe 20 soldiers in a camp..

ZNorQ

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Hide bodies action
« Reply #5 on: 14 Dec 2005, 18:38:14 »
Strange things happen to a unit that has been dead for a few minutes - name doesn't work for example.  I thought that if a unit knowsabout another unit when that unit dies the knowsabout level decays with time.  Is it possible for a unit to get to know about a dead unit?  I thought it wasn't.  If it okay then you can put the 20 or so loons in an array called sat _loons and check:

{_x knowsabout _unit} count _loons > 0

To see if any of them knows about _unit
« Last Edit: 14 Dec 2005, 18:39:30 by THobson »

Offline ZNorQ

  • Members
  • *
  • ehr... uhm... duh...
Re:Hide bodies action
« Reply #6 on: 14 Dec 2005, 21:20:13 »
Well, I think you're right about that name. I remember now that I had some bad experience earlier with the name disappearing, but for the test I did it worked. Which means that it could be ineffective after a while... I better make some extensive tests I guess - using your much welcomed tip :D

Thanks!