Home   Help Search Login Register  

Author Topic: Determine type of object?  (Read 554 times)

0 Members and 1 Guest are viewing this topic.

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
Determine type of object?
« on: 30 Nov 2004, 23:04:49 »
Hi!

Is it possible to determine what type of an object a unit is, for example if a unit is a "BAS_RangerGL" or a "BAS_RangerAT"?


Thanks in advance! :)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Determine type of object?
« Reply #1 on: 30 Nov 2004, 23:14:12 »
Quote
Is it possible to determine what type of an object a unit is, for example if a unit is a "BAS_RangerGL" or a "BAS_RangerAT"?


Code: [Select]
typeOf rangerguy

 :wave:
Not all is lost.

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:Determine type of object?
« Reply #2 on: 30 Nov 2004, 23:18:28 »
typeOf : comref

Never mind, shouldn't wait before answering ;)
« Last Edit: 30 Nov 2004, 23:20:22 by MachoMan »
Get those missions out there you morons!

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
Re:Determine type of object?
« Reply #3 on: 01 Dec 2004, 18:01:07 »
:wow: Sorry guys (for not browsing the comref first). I didn't even know about the existence of the typeOf command. :-[

Thanks for answering ;) ;D