OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Torak on 13 Oct 2003, 18:20:48
-
Is there any way of adding corpses to a mission? For instance, if I want to show a massacre in the intro, can I have the corpses tracked and added in the same places in the mission proper? In fact, is there any way of adding corpses and gore in general?
-
You can make your own corpses by placing a unit and typing in his init field
this setdammage 1
To make many corpses just place many units and above them at trigger covering the area they're at and using
activation: anybody present
condition: this
on activation: "_x setdammage 1" foreach units thislist
To set them to the same places in intro and in mission, I'd suggest nothing more complicated than copy/paste from intro's side to the mission's side.
-
Great.... and is that "damage" or is it really "dammage" with two Ms?
Can I set it to kill a whole group at once? Possibly killing a few dozen civvies over a period of perhaps four seconds or so?
-
It's really dammage. Go figure.
You should get a copy of the official command reference from:
http://www.ofpec.com/editors/browse.php?category=1_5&start=25
-
Ah well, BIS' infamous spelling.... ;)
I've got the command ref, but I can't find anything to have the "extended massacre" effect. Any pointers where to look?
-
Ah well, BIS' infamous spelling.... ;)
I've got the command ref, but I can't find anything to have the "extended massacre" effect. Any pointers where to look?
-
What do you mean by "anything for the extended massacre effect"? Artak's solution will work fine, as long as you don't want anyone to live inside the trigger. If you want survivors, you'll have to make arrays or groups of the people you want dead.
-
Explore the http://www.ofpec.com/addons/index.php?category=6&page=1 OFPEC blood addon to go with your massacre.
Like I said above, making multiple corpses at ease can be done best using the foreach command in a trigger.
All you have to do is place your civilians in the editor and then place a trigger coveging the area. If you want only civilians being killed from the area but have some troopers in as well, just set the activation of the trigger to 'civilian present'.
Set the condition to 'this' and type in the 'on activation line' something like this:
"_x setdammage 1" foreach units thislist
syntax might not be 100% correct but give it a go. ;)
-
That's great, it works well, thanks!
Any way of spreading it out over a few seconds? Basically, I'm wanting it to look like troops gunning down civilians in swathes, but I'm a bit of a beginner at all this.
-
For that you'd have to write a script, with delays.
-
OK, thanks. I'll try that, and post the results...
If the script works well, should I post it in the scripts depot?