OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Coffeemilk_Q on 13 Oct 2003, 20:47:44

Title: destroyed buildings
Post by: Coffeemilk_Q on 13 Oct 2003, 20:47:44
Hi,
I got version 1.0 of the game and I asked myself if it is possible to have destroyed buildings right from the start. Like the this setdammage 1.0 command on units. Is there some command for buildings?
Thnx
Title: Re:destroyed buildings
Post by: Kaliyuga on 13 Oct 2003, 20:53:28
 not sure about with such an early version of OFP....

if you had Resistance then you could get the object ID number of the building and then setdammage to it


I think the best you can do is make a gamelogic on your building and then camcreate a laserguided bomb ( are LGB's even in 1.0??) onto the spot and blowing up the building..

 bomb="HEAT120" camcreate getpos g1  

toss that in a trigger/script/waypoint  and place a gamelogic named g1 on the spot you want the shell to appear.

the bit in quotes "HEAT120" can be changed to any valid shell type ...

you can try to use "LaserGuidedBomb"  to get a proper explosion.. but I think that the LGB was added in 1.30 ?? or a following version...

you should really go to www.flashpoint1985.com and get the patches to upgrade from 1.0  (actually you should buy resistance, but if not.. at least update your CwC )

:cheers:
Title: Re:destroyed buildings
Post by: General Barron on 13 Oct 2003, 21:03:03
Place a game logic near the building you want destroyed, and type this in its 'init' field:

(nearestbuilding this) setdammage 1

BTW, you should definately go to www.flashpoint1985.com (http://www.flashpoint1985.com) and download the (free) patch to get your game up to version 1.46. There were a lot of changes from v1 to v1.46. Also I would suggest you go buy resistance.  ::)
Title: Re:destroyed buildings
Post by: Coffeemilk_Q on 14 Oct 2003, 17:07:48
I can't update my game and 'resistance' ins't in stores here. (Holland) Maybe in a while I will buy it from ebay or something but not now.

But I will try the suggestions u gave me.