Jump to content
Sign in to follow this  
Koni

Detect if vehicle cannot be driven through damage

Recommended Posts

I'm trying to detect if a vehicle cannot be driven through any form of damage, like burst tyre etc.

I know it can easily be detected if the vehicles destroyed with !alive, but it would be better if it can be detected once the vehicles just un-drivable instead ?

I have 3 named trucks, to set off a trigger later on, one of the 3 trucks needs to be taken somewhere, but I need to fail the mission if there's just no way of getting any of them there through damage etc.

If not I'll just have to use invincable vehicles, but that's a bit poor.

Any ideas ?

Thanks

Share this post


Link to post
Share on other sites

Thanks Sickboy,

?!(canMove _vehiclename)

throws up an Invalid number in expression error in a trigger

I changed it around until I got something that will not error,

(canMove TT1) OR (canMove TT2) OR (canMove TT3)

that seems to trigger if the vehicles are drivable, but I just need to switch it around or use this info to trigger if they become not drivable.

Share this post


Link to post
Share on other sites

I could of bet my life I had tried that way round... obviously not, heh

Thanks F2k Sel :thumbsup:

ps. Yes I did, just didn't leave a space between the !(canMove TT1)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×