Ok i want this script to create a grenade under or at the car position when it reaches 20 speed to disable it and not kill it, the script here is not working really. I named the car "vehicle" and the guy "unit".
; a small carbomb script
_unit = _this select 0
_vehicle = _this select 1
#update
? (_unit in _vehicle) && (speed _vehicle >20) : "goto blowup"
~2
goto "update"
#blowup
~5
_vehicle = "grenade" camcreate getpos _vehicle
exit