Home   Help Search Login Register  

Author Topic: Adding and tracking corpses  (Read 833 times)

0 Members and 1 Guest are viewing this topic.

Torak

  • Guest
Adding and tracking corpses
« 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?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Adding and tracking corpses
« Reply #1 on: 13 Oct 2003, 18:55:29 »
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.
Not all is lost.

Torak

  • Guest
Re:Adding and tracking corpses
« Reply #2 on: 13 Oct 2003, 19:07:50 »
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?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Adding and tracking corpses
« Reply #3 on: 13 Oct 2003, 19:57:16 »
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
Not all is lost.

Torak

  • Guest
Re:Adding and tracking corpses
« Reply #4 on: 13 Oct 2003, 21:12:26 »
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?

Torak

  • Guest
Re:Adding and tracking corpses
« Reply #5 on: 13 Oct 2003, 21:27:30 »
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?

m21man

  • Guest
Re:Adding and tracking corpses
« Reply #6 on: 13 Oct 2003, 21:42:33 »
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.
« Last Edit: 13 Oct 2003, 21:43:36 by m21man »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Adding and tracking corpses
« Reply #7 on: 13 Oct 2003, 21:46:05 »
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.  ;)
Not all is lost.

Torak

  • Guest
Re:Adding and tracking corpses
« Reply #8 on: 14 Oct 2003, 01:01:43 »
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.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Adding and tracking corpses
« Reply #9 on: 14 Oct 2003, 17:04:38 »
For that you'd have to write a script, with delays.
Not all is lost.

Torak

  • Guest
Re:Adding and tracking corpses
« Reply #10 on: 14 Oct 2003, 17:15:52 »
OK, thanks. I'll try that, and post the results...

If the script works well, should I post it in the scripts depot?