Home   Help Search Login Register  

Author Topic: Delete animals (rabbits)  (Read 2078 times)

0 Members and 1 Guest are viewing this topic.

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Delete animals (rabbits)
« on: 31 May 2011, 00:19:47 »
Hello!

I was surprised but actually there is not yet a thread about this (AFAIK after searching):

Is there a way to remove the random animals? I'm not talking about those who appear when you use the animals module. I mean e.g. the rabbits on the roads which sometimes destroy my cutscenes because the (human) AI is so considerate (I mean STUPID) and doesn't ride over them - causing chaos in the pathfinding... >:(

Do you know how to do that? Preferably in a trigger area? :)
Current project: Black Lands (Arma 3)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Delete animals (rabbits)
« Reply #1 on: 31 May 2011, 08:18:45 »
You could try setting a trigger of wanted size, activated by civilian, repeatedly and in the on act. field:
Code: [Select]
{if (typeOf _x == "Rabbit") then {deleteVehicle _x}} forEach thislist:dunno:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Re: Delete animals (rabbits)
« Reply #2 on: 01 Jun 2011, 20:47:58 »
Ok, I'll try that! :D Thanks, h-!

"Activate by civilian": Does that mean that the animals are in the civilian side and always when a rabbit enters the trigger area, it will be activated?

Thanks for your help!
Current project: Black Lands (Arma 3)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Delete animals (rabbits)
« Reply #3 on: 02 Jun 2011, 06:44:16 »
Quote
Does that mean that the animals are in the civilian side and always when a rabbit enters the trigger area, it will be activated?
At least in the configs they are set to the civilian side so that's how it should work.
You can also try "anybody".
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Re: Delete animals (rabbits)
« Reply #4 on: 10 Jun 2011, 22:58:16 »
h-, I implemented your code and for a while it worked. Thank you very much!
But today I tested the cutscene again and again there were rabbits on the road messing the scene up. :D This time they even "worked" in a team of two... :scratch:

Is there anything else I could try to get rid of these gadflys?
Current project: Black Lands (Arma 3)

Offline F2kSel

  • Members
  • *
Re: Delete animals (rabbits)
« Reply #5 on: 11 Jun 2011, 01:01:34 »
The script works fine here, I don't think you can get rid of the gadflys though.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: Delete animals (rabbits)
« Reply #6 on: 11 Jun 2011, 07:31:20 »
Sorry for wasting forum space without being helpful...

But, this has been a growing problem since the reliable OFP game engine days.
The BIS games get better and better in terms of gameplay, but for us "cutscene directors" it's a nightmare.
The AI and environment is now more real and unpredictable, unfortunately you can't turn it OFF.
I wonder if the new "play video" function was implemented partly because of this issue.
Record your scene on video and make it the cutscene... No risk of rabbits messing up the cutscene.
In the good old OFP days the AI was stupid, but at least it did what it was told during cutscenes.
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Delete animals (rabbits)
« Reply #7 on: 11 Jun 2011, 07:36:33 »
h-, I implemented your code and for a while it worked. Thank you very much!
But today I tested the cutscene again and again there were rabbits on the road messing the scene up.
It might work better as a script instead from a trigger. :scratch:

One thing that will work is to use the command enableEnvironment but that shuts down the environment completely = all environmental animals and sounds.

And laggy, you can turn off the AI (disableAI/enableAI/enablAIFeature), obviously if you disable enough of it it does nothing and you then have to script it to do everything.
I don't have experience with enableAIfeature but at least it sounds you can cut off some behavior from it.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline F2kSel

  • Members
  • *
Re: Delete animals (rabbits)
« Reply #8 on: 11 Jun 2011, 14:25:43 »
One thing I noticed I never get more than one rabbit at a time although it lists several entities. I  spawn a bomb at the entity it only spawns at the single rabbit.