Home   Help Search Login Register  

Author Topic: script for mines?  (Read 1604 times)

0 Members and 1 Guest are viewing this topic.

Offline John

  • Members
  • *
script for mines?
« on: 28 Jul 2006, 12:30:18 »
Hi there!

I have put mines in my mp mission but I noticed they dont work with light vehicles like humvees etc...is their any script or any other weapon I can use that is similar so that it will blow up light vehicles to?.

Cheers

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: script for mines?
« Reply #1 on: 28 Jul 2006, 16:49:23 »
yes there is.
place a object you use as your "mine" or IED.
(just a dummy to give players the chance to see it and react before the trigger blows)

then place a trigger that executes this script "once"

Code: [Select]
; **********************************************************************
; **** Causes an explosion at a trigger.
; ****
; **** 1 parameter needed:
; **** 1. Trigger where explosion will be. (Object)
; ****
; **** Example how to use:
; **** TRIGGER:
; **** Radius: 3
; **** Name: Mine_1
; **** Activation: EAST + PRESENT
; **** On Activation: [Mine_1] Exec "Mine.sqs"
; ****
; **** By CHenderMan@cableone.net
; **********************************************************************

; Get the parameter given
_trigger = _this Select 0

; Get the position for the explosion
_pos = GetPos _trigger

; Set the type (change type here if needed)
_type = "Heat125"

; Create the explosion
_mine = _type CamCreate _pos
CamDestroy _mine

Exit

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: script for mines?
« Reply #2 on: 28 Jul 2006, 16:57:10 »
Or use the CoC Mines addon.

1 problem with that script, it will explode when a helicopter flies over it. In the trigger condition put:
Code: [Select]
this and "land" counttype thislist > 0
« Last Edit: 28 Jul 2006, 17:00:13 by Mr.Peanut »
urp!

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: script for mines?
« Reply #3 on: 30 Jul 2006, 06:35:29 »
yeah sorry my bad, I forgot.
However...I prefer using a script over (another) addon in a mission.
To keep addon count as low as possible so more people can play it without having to hunt down the addons.
Of course, if you wanna make a large minefield, you wanna script something else or use CoC mines.
But the above is perfect for a few mines or them little IED's everyone hates so much  :P

Offline Cheetah

  • Former Staff
  • ****
Re: script for mines?
« Reply #4 on: 30 Jul 2006, 17:41:19 »
Well, I'd replace the Heat with a grenade, because it's a very large mine if you use HEAT rounds to explode.
And this script is fine if you just want to have a few mines in your mission.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: script for mines?
« Reply #5 on: 30 Jul 2006, 17:43:20 »
Yes of course it is up to every one himself what explosion he uses.
I mostly use this for IED's so it's pretty fine... but change it quite often...