OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: John 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
-
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"
; **********************************************************************
; **** 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
-
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:
this and "land" counttype thislist > 0
-
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
-
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.
-
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...