Home   Help Search Login Register  

Author Topic: Using ID numbers  (Read 984 times)

0 Members and 1 Guest are viewing this topic.

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Using ID numbers
« on: 18 Mar 2008, 04:19:20 »
I am trying to detect if a bridge has been blown in northern Sahrani. It's ID number is 444824.

The bridge cannot be grouped with a trigger so I was trying to use something like:

!alive 444824;  <-- in the trigger condition field

aparantly something that might seem obvious was not so obvious.... someone should know the answer..
TS3 IP: tor.zebgames.com:9992

Offline Cheetah

  • Former Staff
  • ****
Re: Using ID numbers
« Reply #1 on: 18 Mar 2008, 08:41:47 »
!alive (object 444824)

that should work
« Last Edit: 18 Mar 2008, 15:32:03 by Cheetah »
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Using ID numbers
« Reply #2 on: 18 Mar 2008, 15:19:22 »
The command, object, doesn't work in ArmA! The best thing to do is to place a GameLogic close to the bridge (give it the var-name "bridgeLogic") and use a trigger with condition:
Code: [Select]
not (alive ((getPos bridgeLogic) nearestObject 444824))

(you could use an invisible marker instead of the GameLogic if you'd prefer and use getMarkerPos to get the position).
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Ironman

  • Former Staff
  • ****
    • {GSF} Home Page
Re: Using ID numbers
« Reply #3 on: 20 Mar 2008, 05:13:26 »
Thanks, I will try that....
TS3 IP: tor.zebgames.com:9992