OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: NightJay0044 on 21 Mar 2009, 21:00:31

Title: Remove I.D. (Solved)
Post by: NightJay0044 on 21 Mar 2009, 21:00:31
Hi, can someone tell me how to do this? I want to remove an I.D. when you click "show/hide I.D.s" in the editor. There is part of a fence I want to remove..

How to?

Thanks.
Title: Re: how to remove an I.D. in editor
Post by: laggy on 21 Mar 2009, 21:59:40
NjaysFence = position player nearestObject (insert ID number here); NjaysFence setdamage 1
Title: Re: how to remove an I.D. in editor
Post by: Deadfast on 22 Mar 2009, 00:13:39
Setting its damage to 1 as Laggy suggests is about the only thing which you can do with island objects :(
Title: Re: how to remove an I.D. in editor
Post by: Spooner on 22 Mar 2009, 03:05:19
Yes, you can't delete or even move map objects. If the objects are near the players at the start of the mission, it can help to move the players a log way away, show a blank screen, destroy the object (which often makes a lot of noise and dust), then wait a few seconds before moving the players back to start the mission. About the best way to have something pre-destroyed without it appearing to be destroyed before the players' eyes.
Title: Re: how to remove an I.D. in editor
Post by: i0n0s on 22 Mar 2009, 06:38:26
A alternative would be setVectorUp to hide it.
Title: Re: how to remove an I.D. in editor
Post by: Worldeater on 22 Mar 2009, 10:33:08
Interesting idea... but it does not work as expected :)
Title: Re: how to remove an I.D. in editor
Post by: NightJay0044 on 23 Mar 2009, 06:11:40
Thanks all for the help.

NjaysFence = position player nearestObject (insert ID number here); NjaysFence setdamage 1

This one worked just fine, it makes the fence fall down. :clap:...