OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: blekzebbed on 20 Jan 2006, 14:46:19

Title: Damaging unedited objects
Post by: blekzebbed on 20 Jan 2006, 14:46:19
Hey guys

Can I destroy the buildings and threes in a town like Le Moule without
creating a laserguidedbomb or something like that? I do not want that because in the mission I need it you start in the (destroyed?) village and I don't want to have a artillery barage first, you wake up after one, in a new mission.

- So instead of a normal village, it should be destroyed, it must look like there
was some sort of bombing raid before.

Can u Help me?    :P ???

cheers blekzebbed
Title: Re:Damaging unedited objects
Post by: Planck on 20 Jan 2006, 14:52:29
You could use satchels, but, there are some buildings that resist damage......like churches.

Divine intervention I think.   ;)

Possibly setting damage might work also, I've never tried.


Planck
Title: Re:Damaging unedited objects
Post by: Pilot on 20 Jan 2006, 15:00:25
Quote
Divine intervention I think.  ;)
;D

THobson did this in Abandones Armies.  In the mission editor, click, "Show Object  IDs" (or something along that line) and zoom in until you see some numbers appear beside the objects.  Use those numbers in a setdammage command:
object XXXXX setdammage 1

-Pilot
Title: Re:Damaging unedited objects
Post by: macguba on 20 Jan 2006, 15:00:51
In your init.sqs

"_x setDammage 1" forEach [object 1234, object 3422, etc]


Edit:  I must be getting old.  ::)
Title: Re:Damaging unedited objects
Post by: blekzebbed on 20 Jan 2006, 15:34:12
Thanks dudes, and one little question, which is not worth it to get an own link: how do you get a black briefing map?, so you can't see where you are and there is just no map?

cheers zebbed
Title: Re:Damaging unedited objects
Post by: nominesine on 20 Jan 2006, 16:14:05
You need a description.ext document that sets the default variable showMap to true

Then you can change this variable from script, initLine or whatever to showMap false. Blackout.

EDIT: The comref states that showMap true is a default setting, but it isn't possible to change it unless you actually defines it as true first.
Title: Re:Damaging unedited objects
Post by: The-Architect on 20 Jan 2006, 16:17:46
For extra effect download the latest editor addon from the ed depot and place some craters and maybe some destroyed houses on the map. Give it that extra feel.