Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: typeof object ID doesn't work anymore?  (Read 1944 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
typeof object ID doesn't work anymore?
« 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?
 
« Last Edit: 15 Mar 2007, 09:44:21 by Blanco »
Search or search or search before you ask.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: typeof object ID doesn't work anymore?
« Reply #1 on: 14 Mar 2007, 18:47:54 »
Quote
Any ideas?
Search  :D

For example
Object ID Help
Move to object

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

Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: typeof object ID doesn't work anymore?
« Reply #2 on: 14 Mar 2007, 19:35:23 »
Use typeOf nearestobject giving the closest position to the desired object.