OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: Graywolf on 19 Jun 2004, 06:56:30

Title: Wire Cutters
Post by: Graywolf on 19 Jun 2004, 06:56:30
Does anybody remember the mission were you get Wire Cutters ?
I can not find it  :(
Is their a Addon or script for useing Wire cutters ?
Thanks  ;)
Title: Re:Wire Cutters
Post by: Blanco on 30 Jun 2004, 19:58:07
you can simulate it, but you need the editorupgrade because there's a fence in it in 2 versions : a normal and a torned one.

I did in a Blackops mission.
I add an action on it (cut wire), make the cutter sit via a animation, add some cutting sounds and replace the fence with the torned one.


 
Title: Re:Wire Cutters
Post by: j-man on 30 Jun 2004, 20:35:03
@Blanco

Would you mind sharing the script with us? Or is it top secret :)
Title: Re:Wire Cutters
Post by: Blanco on 30 Jun 2004, 20:43:21
not at all, but I don't have it with me right now.

Title: Re:Wire Cutters
Post by: Blanco on 01 Jul 2004, 16:11:50
You need General Barron's version editorupgrade102

Place a fence chainlink (EU - Roads / fences/ FENCE Chainlink) on your map.

In the init of the fence :
Code: [Select]
ID01 = this addaction ["CUT WIRE","CUTTER.sqs"]
And use this little script :

Code: [Select]
;________________________
;::::::::::::::::::::::::
;
;CUTTER.sqs
;author <Blanco>
;created 10/10/2003 3:27:44
;________________________
;::::::::::::::::::::::::



_fence = _this select 0
_cutter = _this select 1

_fence removeaction ID01

_xpos = getpos _fence select 0
_ypos = getpos _fence select 1
_zpos = getpos _fence select 2

_dir = getdir _fence

_cutter switchmove "civiltocivilputdown"
~2

deletevehicle _fence
_tornfence = "AAA541" camcreate [0,0,0]
_tornfence setpos [_xpos,_ypos,_zpos]
_tornfence setdir _dir
exit

Easy huh?