OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 17 May 2004, 01:26:21

Title: setdammage of an object
Post by: Killzone on 17 May 2004, 01:26:21
Hi

I am trying to get an object (a house) that is in the map to start out with some dammage. Can I use the setdammage command in a script I tried using

player setdammage object 710 > 0.8

But it comes back with

player setdammage object 710> # 0.8: error setdammage: type object expected number

The problem is I dont think I know how to use the setdammage command in a script.

Thanks for any help ;D
Title: Re:setdammage of an object
Post by: Chris Death on 17 May 2004, 02:37:26
object_to_be_damaged setDammage damage_level

which would be in your case:

object 710 setDammage 0.8

 ;)

~S~ CD