I'm bored so I'll try to fix this scripts (I dun really like triggers much
)
_Unit = _this select 0
_Vehicle = _this select 1
; \/ This line is a problem!! \/
_Unit playmove "Erm"
~5
#Update
? (speed _Vehicle > 5) : goto "BlowUp"
~2
goto "Update"
#BlowUp
~5
_Vehicle setdammage 1
_bomb01 = "Heat125" camcreate [getpos _vehicle select 0,getpos _vehicle select 1, getpos _vehicle select 2]
exit
Then you call it like this
[player,this] exec "carbomb.sqs"
Put that in the CARs INIT field
I removed the bit that checks if the unit is in the car.. It seems pointless to me.. The bomb shouldn't be picky who's in the car.. It doesn't think, "Hmm, I like this person, better not blow up now".. If you see what I mean.. It will blow up no matter who gets in it (Say the player, if he gets in it, after he's put the carbomb on, it won't work)
Oh, I added a playmove line, followed by a delay.. I'm not sure of the correct name (It is 11:30, so please excuse me
), but in the editors depot, search for Switchmove list (Or playmove, maybe), and it has a bit list of ones.. Then use the find thing to look for Repair.. That should look like tampering with the car...
---- Here is the end of the script fix
----
Just an idea.. Not so much for the script as the mission.. I'm reading a book (Chris Ryan - Stand By, Stand By), that the first, about 1/2, is set in Northern Irland.. Where carbombs are used a lot.. Maybe if the random number is under 2, the person who will get in the car, uh, won't.. As he will have checked for, and noticed the carbomb? Then maybe the player would have to shoot him, and that would make something else happen near the end (Like the weapon is linked to the shooting it linked to you, and the poice attack you or something..?)
Anyway, heres the code :
_randnum = random 20
?(_randnum < 2): GOTO "noticed"
EXIT
#noticed
noticedbomb = true
_Unit say "Whatsthis"
;Not sure what to put here, setWP or something
In another script, you can check if noticedbomb is true (Like this ?(noticedbomb): GOTO "somewhere"), and use that to move the police or what ever into place..
Sorry if I got carried away
I tend to do that sometimes..
But I hope you might get a few ideas from it
Gd luck
- Ben
BTW, I forrgot to ask, where is the mission set? Norther Irland?
Oh, also.. Just joking, I'm finished now