OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Peter haroski on 18 Apr 2004, 10:13:32

Title: Destroing Bridge
Post by: Peter haroski on 18 Apr 2004, 10:13:32
How I can make unit1 fire the bridge in Nogova, example unit1 dofire bridge17662(that is id(maeby) or unit1 dofire id17662, or is there command to destroy the bridge
Title: Re:Destroing Bridge
Post by: dmakatra on 18 Apr 2004, 10:41:08
object XXXX setdammage 1.0 will destroy the selected section of the bridge. I don't think AI want to fire at objects so faking it with setdammage is the only thing I can come up with,

:beat: *Gets Shot* :beat:
Title: Re:Destroing Bridge
Post by: Peter haroski on 18 Apr 2004, 11:55:24
DO I have to write bridges id to that xxxxx
Title: Re:Destroing Bridge
Post by: dmakatra on 18 Apr 2004, 11:57:07
Yup. If the desired bridge segment Id is, say, 111111, you need to type:

object 111111 setdammage 1.0

:beat: *Gets Shot* :beat:
Title: Re:Destroing Bridge
Post by: Dubieman on 21 Apr 2004, 19:45:29
How about scripting an explosion in there? You put in
obj 1111 setdammage 1 and also include like a camcreate shell125 or something so the bridge doesn't just collapse.