OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Inkompetent on 29 Jun 2007, 23:12:41

Title: How to register destroyed buildings?
Post by: Inkompetent on 29 Jun 2007, 23:12:41
I'm trying to make a mission to bust some transformators, but I can't for all in the world get the game to understand if they are destroyed.

I've tried with the "object 488815" thing, but then the game complains about the space between 'object' and '488815', so how do I do it if I want a getDammage or !alive check?
Title: Re: How to register destroyed buildings?
Post by: h- on 29 Jun 2007, 23:26:52
Do a search with the keywords object ID and limit the sarch to this board and ye shall find out why object XXXXX doesn't work ;)
Title: Re: How to register destroyed buildings?
Post by: LCD on 29 Jun 2007, 23:53:07
its like dat

put a gamelogic nead da building and type : Name = nearestBuilding GamelogicName

now u can use da name as da buildings name :D

LCD OUT
Title: Re: How to register destroyed buildings?
Post by: The-Architect on 06 Jul 2007, 02:49:34
How would it look syntax wise if I wanted to check if any of the bridge objects were destroyed?

EDIT: No need, found the solution in this thread,
http://www.ofpec.com/forum/index.php?topic=29248.0
Title: Re: How to register destroyed buildings?
Post by: Mandoble on 06 Jul 2007, 12:35:20
And make sure the object is destroyable as some of them are not.
Title: Re: How to register destroyed buildings?
Post by: Inkompetent on 31 Jul 2007, 22:02:08
Thank you!