Home   Help Search Login Register  

Author Topic: Deactivated mines  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Deactivated mines
« on: 22 May 2008, 21:58:22 »
Is there a way to detect wether a mine (placed from the editor) has been deactivated or not?

I know that Sui worked hard with this problem when he was working on Facile Ground back in 2002. As far as I remember he never solved it. Does someone have a working solution to this delicate problem. Preferably one that isn't too complicated.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Rommel92

  • Members
  • *
Re: Deactivated mines
« Reply #1 on: 22 May 2008, 22:00:33 »
Compare animation states, correct me if I'm wrong but mines when deactivated "tilt"...  :dunno:

Rommz,

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Deactivated mines
« Reply #2 on: 23 May 2008, 00:36:29 »
Mines don't seem to have animationStates. And the animationPhase command only returns a string saying "scalar"
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Deactivated mines
« Reply #3 on: 23 May 2008, 01:29:53 »
For shits and giggles, try vectorUp or one of the other associated vector-commands. Since it DOES tilt one would think it might even change vectors or somesuch in there, no?

Secondly, once again for shits and giggles, you could try the animation commands on the UNIT performing the action - once in a blue moon BIS will have given the animation to do something a unique name and entry, while the actual animation played is still the usual "bend down and tie your shoelaces" one. By using that around mines in some kind of watching script, you might be able to see if the mines have been deactivated or not?

And finally, take a good look at this beauty - it can among other things return the number of active mines in the minefield, so if nothing else you can pick it apart and figure out how he did it, or simply use it as it is for your mission!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Deactivated mines
« Reply #4 on: 23 May 2008, 01:49:08 »
You could try the animation commands on the UNIT performing the action

Brilliant. Why didn't I think of that. If it works I'm going to convert my mission Safe House from OFP to ArmA... and I promise to keep it completely Queens Gambit-free  ;)
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline schuler

  • Contributing Member
  • **
Re: Deactivated mines
« Reply #5 on: 23 May 2008, 03:50:08 »
@nominesine i have always enjoyed your missions looking foreword to this in ArmA!
@Wolfrug
Quote
Secondly, once again for shits and giggles,
what a nice phrase, very handy words there   :D  downunder here in aussie land ,,,, i forgot all about phrases like that, they dont say that one there!!!!
Semper Fi

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Deactivated mines
« Reply #6 on: 23 May 2008, 09:07:10 »
Just pointing out that not one object 'pointer' commands work with mines, basicly the mine objects do not exist in the same universe as the other objects do.
If you for example give a name to a mine object and try to 'access' the mine by using the name nothing happens because the mine isn't really there..

AFAIK the only way you can refer to a mine object is with the nearestObject commands, but I don't know whether that would do any good either..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Deactivated mines
« Reply #7 on: 23 May 2008, 10:14:29 »
not one object 'pointer' commands work with mines /.../ the only way you can refer to a mine object is with the nearestObject commands

I also noticed this yesterday. Annoying. I had the same problem when i was building Safe House for OFP. I must install flashpoint again and check how I handled the issue back then.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: Deactivated mines
« Reply #8 on: 25 May 2008, 02:08:53 »
I was thinking of converting missions. How are you going to go about it?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Deactivated mines
« Reply #9 on: 25 May 2008, 02:41:44 »
Check this.

Offline schuler

  • Contributing Member
  • **
Re: Deactivated mines
« Reply #10 on: 25 May 2008, 05:14:38 »
@The-Architect me too! should start a new thread on that,,, but i dont think it would be that hard to convert. just the script calls ,,, of {}  and so on.....
« Last Edit: 25 May 2008, 05:16:55 by schuler »
Semper Fi

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Deactivated mines
« Reply #11 on: 25 May 2008, 20:26:57 »
I was thinking of converting missions. How are you going to go about it?

I'll build them from scratch again. The most time consuming part (for me) has always been the plot. With that settled, mission making is merely a mechanical process. And it's fun to build stuff  :D And I supposed Mandoble has solved my initial question. Will try the solution ASAP.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline schuler

  • Contributing Member
  • **
Re: Deactivated mines
« Reply #12 on: 26 May 2008, 16:42:40 »
hey ,,, as you rebuild them they get better anyways  ;)
Semper Fi

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Deactivated mines
« Reply #13 on: 30 May 2008, 09:24:40 »
And finally, take a good look at this beauty - it can among other things return the number of active mines in the minefield, so if nothing else you can pick it apart and figure out how he did it, or simply use it as it is for your mission!

Thanks. With a slight modification the aforementioned download solved the problem. I've never fully realised how powerful sqf-scripting can be until now.
OFPEC | Intel Depot
RETARDED Ooops... Retired!