OK you gotta love me for this i just finished it for you i hope its what you wont i have attached missions file to let you have a go and see how it works i simplified it for you alot form my finished version I'm working on for the Stargate mod OK hear goes
Attach bomb scripts x 3
First script
"Attach.sqs"
; scripted by wizzywig
_target = target
_pos = getpos _target
_x = _pos select 0
_y = _pos select 1
_z = _pos select 2
Bomb1="bomb" CamCreate [_x -1, _y +1, _z -1]
player removemagazine "pipebomb"
player addaction ["Timer 45 seconds","Timer.sqs"]
player addaction ["Detonate bomb","detonate.sqs"]
_target removeaction 0
Exit
Second script
"Timer.sqs"
; scripted by wizzywig
titletext["Timer set", "PLAIN DOWN"]
~0.5
titletext["45", "PLAIN DOWN"]
~1
titletext["44", "PLAIN DOWN"]
~1
titletext["43", "PLAIN DOWN"]
~1
titletext["42", "PLAIN DOWN"]
~1
titletext["41", "PLAIN DOWN"]
~1
titletext["40", "PLAIN DOWN"]
~1
titletext["39", "PLAIN DOWN"]
~1
titletext["38", "PLAIN DOWN"]
~1
titletext["37", "PLAIN DOWN"]
~1
titletext["36", "PLAIN DOWN"]
~1
titletext["35", "PLAIN DOWN"]
~1
titletext["34", "PLAIN DOWN"]
~1
titletext["33", "PLAIN DOWN"]
~1
titletext["32", "PLAIN DOWN"]
~1
titletext["31", "PLAIN DOWN"]
~1
titletext["30", "PLAIN DOWN"]
~1
titletext["29", "PLAIN DOWN"]
~1
titletext["28", "PLAIN DOWN"]
~1
titletext["27", "PLAIN DOWN"]
~1
titletext["26", "PLAIN DOWN"]
~1
titletext["25", "PLAIN DOWN"]
~1
titletext["24", "PLAIN DOWN"]
~1
titletext["23", "PLAIN DOWN"]
~1
titletext["22", "PLAIN DOWN"]
~1
titletext["21", "PLAIN DOWN"]
~1
titletext["20", "PLAIN DOWN"]
~1
titletext["19", "PLAIN DOWN"]
~1
titletext["18", "PLAIN DOWN"]
~1
titletext["17", "PLAIN DOWN"]
~1
titletext["16", "PLAIN DOWN"]
~1
titletext["15", "PLAIN DOWN"]
~1
titletext["14", "PLAIN DOWN"]
~1
titletext["13", "PLAIN DOWN"]
~1
titletext["12", "PLAIN DOWN"]
~1
titletext["11", "PLAIN DOWN"]
~1
titletext["10", "PLAIN DOWN"]
~1
titletext["9", "PLAIN DOWN"]
~1
titletext["8", "PLAIN DOWN"]
~1
titletext["7", "PLAIN DOWN"]
~1
titletext["6", "PLAIN DOWN"]
~1
titletext["5", "PLAIN DOWN"]
~1
titletext["4", "PLAIN DOWN"]
~1
titletext["3", "PLAIN DOWN"]
~1
titletext["2", "PLAIN DOWN"]
~1
titletext["1", "PLAIN DOWN"]
this exec "detonate.sqs"
Thread script
"detonate.sqs"
; scripted by wizzywig
_target = target
bomb1 setpos [(getpos _target select 0),(getpos _target select 1),-0.1]
~0.001
bomb1 setdammage 1
player removeaction 0
player removeaction 1
player removeaction 2
player removeaction 3
player removeaction 4
exit
now all you do is name your target:
unit/car/chopper/any thing target and in insert in the
init.sqs
target addaction [""Attach bomb"",""Attach.sqs""]
any enjoy
remember if you improve this please post or pm me with improvements so i can add them to new script thank you
wizzywig