OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Taurus on 25 Jul 2007, 13:39:26

Title: A "remove dead bodies and burry the body"-script. (ACCEPTED)
Post by: Taurus on 25 Jul 2007, 13:39:26
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 (http://www.ofpec.com/ed_depot/index.php?action=details&id=419&page=1&cat=xyz)
Title: Re: A "remove dead bodies and burry the body"-script.
Post by: Mandoble on 25 Jul 2007, 14:09:39
Didnt test it yet, just checked the scripts. Interesting idea, and seems well implemented do far.
Title: Re: A "remove dead bodies and burry the body"-script.
Post by: firecontrol 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. :)
Title: Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
Post by: D007 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
Title: Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
Post by: Taurus 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 :/
Title: Re: A "remove dead bodies and burry the body"-script. (ACCEPTED)
Post by: Taurus 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