OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Blanco on 14 Mar 2007, 18:44:20

Title: typeof object ID doesn't work anymore?
Post by: Blanco on 14 Mar 2007, 18:44:20
In OFP I always use this code to return the classname of an object on the map.

Quote
hint format ["%1",typeof (object xxxxxxx)

xxxxxxx is the ID. It doesn't work in Arma...  :confused:

Any ideas?
 
Title: Re: typeof object ID doesn't work anymore?
Post by: h- on 14 Mar 2007, 18:47:54
Quote
Any ideas?
Search  :D

For example
Object ID Help (http://www.ofpec.com/forum/index.php?topic=28759.0)
Move to object (http://www.ofpec.com/forum/index.php?topic=28760.0)

In short, the command object is not available in ArmA due to the streaming technology used..

Title: Re: typeof object ID doesn't work anymore?
Post by: Mandoble on 14 Mar 2007, 19:35:23
Use typeOf nearestobject giving the closest position to the desired object.