Home   Help Search Login Register  

Author Topic: A "remove dead bodies and burry the body"-script. (ACCEPTED)  (Read 3935 times)

0 Members and 1 Guest are viewing this topic.

Offline Taurus

  • Members
  • *
  • Yepp, I'm a llama!
Maybe done before, but then I've reinvented the wheel and got some new scripting knowledge :D

It does not include any mission.
But basically, add some units to a .intro map and read the readme.txt.

Feedback are highly appreciated!

File found below.
RemoveDeadAddGrave
« Last Edit: 08 Aug 2008, 15:55:44 by hoz »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: A "remove dead bodies and burry the body"-script.
« Reply #1 on: 25 Jul 2007, 14:09:39 »
Didnt test it yet, just checked the scripts. Interesting idea, and seems well implemented do far.

Offline firecontrol

  • Members
  • *
Re: A "remove dead bodies and burry the body"-script.
« Reply #2 on: 25 Jul 2007, 16:28:30 »
That is a really cool idea! I like it.  :good:
I haven't tested it either, but it looks good. Could be really cool to use at the end of a campaign or something where you can visit your fallen squadmates. Something like the last 'mission' in OFP where you go around picking up the main characters to go to the bar. :)

Offline D007

  • Members
  • *
Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
« Reply #3 on: 08 Aug 2008, 05:59:37 »
anyway you could streamline it to not add the graves?
Kind of want to reduce lag and objects.. not add more.. XD

Offline Taurus

  • Members
  • *
  • Yepp, I'm a llama!
Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
« Reply #4 on: 05 Sep 2008, 14:51:01 »
I've been off this "scene" for a while.
I'll look into the script if this can be done easily.

I think it was done in the main function :/
« Last Edit: 01 Nov 2008, 19:33:42 by bedges »

Offline Taurus

  • Members
  • *
  • Yepp, I'm a llama!
Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
« Reply #5 on: 01 Nov 2008, 19:31:22 »

D007

If you just want a remove dead bodies thingy.
Please note that these are just examples, perhaps it would be smarter to use spawn instead of execVM I really don't know.

Code: [Select]
//
private ["_unit"];
_unit = _this select 0;

while {alive _unit} do {
sleep 1;
};
sleep 60;
hideBody _unit;
sleep 3;
deleteVehicle _unit;

Started from the unit init-line or by other means.
Code: [Select]
nil = [this] execVM "aboveScript.sqf"


Removed offtopic clutter. --  Planck
« Last Edit: 01 Nov 2008, 19:53:03 by Planck »