Home   Help Search Login Register  

Author Topic: About land mines  (Read 676 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Crunch

  • Members
  • *
About land mines
« on: 02 Jun 2003, 19:54:40 »
Have good idea, need great brains! :help:

Here it is:

   I wanna use only one mine, and a trigger to define a mine zone. When ANYHING steps in the trigger zone, this single mine is SetPositioned under its feet or wheels and blows!

  Why do I wanna do that???

  Cos all of the mines in the editor (except for the "Small Floating Water Mine")
wont keep their position if not on perfect flat ground. Yes it is very annoying. And whats more? When activated by a unit on foot, the mines are usually NEVER under the feet of who activated it, which takes some realism away. ...Well not really if one has some good fantasy but I want the mines that blow right under Your feet!!! ;D

I tried and realized I can't make it alone!

    Can anyone help, any good ideas out there? I'm sure there is tons! ;)
Back to the forest!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:About land mines
« Reply #1 on: 02 Jun 2003, 21:15:45 »
When the trigger is fired, camCreate a mine or (a pair of) other explosive device at the trigger location.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:About land mines
« Reply #2 on: 02 Jun 2003, 21:21:42 »
u meen u want it explode only wen da player is on da mine ?

make array of all units dat can activate da mine

nd make a trig - da next condition field

"_X distance MineName < 1" count arrayname > 0

on activision : camcreate a bomb dere ;)

shud work  ;)  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Captain Crunch

  • Members
  • *
Re:About land mines
« Reply #3 on: 02 Jun 2003, 21:57:53 »
Hmmm! I'm not sure about all that. Maybe I wasn't clear enough. ::)

My trigger area is: Axis A = 6 and Axis B = 400.
                              Anybody present repeatedly
                              Type = Switch
                              Condition = this
                              On Activation = ? ( I thougt the best way to get what I want would be done from a script, example:
 
_Unit = _This Select 0


Bang = "Heat105" CamCreate GetPos _Unit

I believe this script should work if only I knew how to call the script from the trigger propperly. When I do it this way, ofcourse i get the error message: Type Bool, Expected Array.

How would I pass the _Unit to the script from the trigger?

My idea here is to blow a mine right under a unit's feet whenever he enters the trigger area, not when close to a mine.


Back to the forest!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:About land mines
« Reply #4 on: 02 Jun 2003, 22:07:43 »
camcreate da mine were u need it ;)

Quote
On Activation = ? ( I thougt the best way to get what I want would be done from a script, example:

put dere [thislist,"minetype","bombtype"] exec "mine.sqs"

nd make da script mine.sqs

Code: [Select]
_units = _this select 0
_type = _this select 1
_bomb = _this select 2

"_type camcreate getpos _X" foreach _units
~0.25
"_bomb camcreate getpox _X" foreach _units
exit

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Captain Crunch

  • Members
  • *
Re:About land mines
« Reply #5 on: 02 Jun 2003, 22:29:50 »
I get no error message but it doesn't work, nothing happens! Oh please help!!! It's gotta be possible!

---I must have done something wrong.

   ---------------Where You wrote [thislist, "minetype","Bombtype"]

what exactly should I write instead of "minetype"?

I wrote "AP Mine"

Is this right?
« Last Edit: 02 Jun 2003, 22:33:03 by Captain Crunch »
Back to the forest!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:About land mines
« Reply #6 on: 02 Jun 2003, 23:18:13 »
mine type is da mine u wanna create dere ;)

make a "Small Floating Water Mine" somwere in da mision nd check its class in da SQm - dats wat u put in da Mine

da bomb is wat u wanna explode - heat or shell ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:About land mines
« Reply #7 on: 02 Jun 2003, 23:20:55 »
Another solution, which requires no external scripts :

create a trigger covering your mined area, and activated by anybody present (or whichever side you want, of course).
In the activation field, write :

"trig setpos getpos _x" foreach thislist

Now create another trigger, as big as you want it to be, also activated by whatever you need, and call it "trig".
In the activation field, write :

mymine="_myammo" camcreate getpos trig

This should do the trick, as you said you only needed ONE mine.