mkay, this is the script as it stands
;pop up targets
_targ = _this select 0
_x = getpos _targ select 0
_y = getpos _targ select 1
~5
deletevehicle _targ
_newtarg = "target" camcreate [_x, _y, 0.9]
_newtarg addeventhandler ["killed",{_this exec "popup.sqs"}]
exit
the first bit (before the ~5) finds out where the target is. so if you add
_dir = getdir _targ
that will find out what direction the target is facing.
then comes the pause, the ~5 bit, which waits for five seconds. if you want it to wait 20 seconds, put
~20
then comes the bit where the old target is deleted and the new target is placed. the 0.9 you mentioned is the height. you'd expect it to be 0, but camcreate buries stuff for some reason. once the new target is created you want to turn it to the same direction as the old one, so put
_newtarg setdir _dir
there. problem solved and some programming practice all in one. OFPEC - it's all good