Home   Help Search Login Register  

Author Topic: Detect deactivated mine  (Read 1456 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
Detect deactivated mine
« on: 14 Jan 2006, 07:59:19 »
I'm making a mission and I want one objective to be the deactivation of mines by the players (These are standard mines for armor).

My question is how do I detect if mines are deactivated?

I want to use this as condition in trigger to make objective "done"

I posted here because this is an MP mission and it's for a dedi server.

Thanks.

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Detect deactivated mine
« Reply #1 on: 14 Jan 2006, 22:50:50 »
have you tried
?(isnull mine_name):Hint"Its gone!" Or try
not alive mine_name

Thats the first thing that comes to mind however not tested.
I like your approach, lets see your departure.
Download the New Flashlight Script!

pazuzu

  • Guest
Re:Detect deactivated mine
« Reply #2 on: 15 Jan 2006, 06:01:05 »
Thanks I'll give it a try...

pazuzu

  • Guest
Re:Detect deactivated mine
« Reply #3 on: 15 Jan 2006, 06:44:16 »
Nope doesn't work.

I found some posts here with a search and It looks like they just cant be treated like regular objects in that they dont respond to most commands...

Thanks anyway.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Detect deactivated mine
« Reply #4 on: 15 Jan 2006, 20:08:32 »
correct

Mines placed by the editor cannot be setpossed, deleted etc

hint format ["M1 = %1",_typeof M1"]  will simply return "Obj"

weapons M1  will return "array"

as will magazines M1.

I've tried various approaches to try and help you, all to no avail

What you might try to do, is use something that looks similar to a mine, place a trigger near it to setdammage 1, or create satchel, setdammage 1, if a typeof tank passes by the trigger

and also add some actions to the mine look alike to give it the disarm actions etc. scripting your desired monitoring system into the addaction script
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123