OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dubieman on 25 Jan 2005, 23:02:57

Title: canmove quick help fer the stumped person
Post by: Dubieman on 25 Jan 2005, 23:02:57
Well, I cannot believe that such a simple thing can escape me. Just wondering how to get the right code in a trigger condition to see if "truck" cannot move?

Some quickie code would be appreciated. I tried the Faq andsearch and either a display of nothing or a bunch of nonsense posts appear. ::)

thanks
Title: Re:canmove quick help fer the stumped person
Post by: bedges on 25 Jan 2005, 23:07:58
erm, can it be as simple as this?

Code: [Select]
canmove vehicle_name
i have a similar code working on a 'chopper's broken' switch trigger condition -

Code: [Select]
not (canmove chopper)
hope this helps
:)
Title: Re:canmove quick help fer the stumped person
Post by: THobson on 25 Jan 2005, 23:16:11
Note though that canMove takes no account of fuel levels, only the state of repair of the vehicle
Title: Re:canmove quick help fer the stumped person
Post by: Dubieman on 25 Jan 2005, 23:16:49
Bah, my CHOFPSE is messing with my head, too many brackets and whirling colors. :D :P

Thanks bedges, forgive an older ofp person fer his mistake.
And let us never speak of it again.

*pats bedges on the back in threatening manner*:noo:

j/k ;D

cheers ;)

edit: Thobson, thanks for the info, never knew that. Shouldn't matter as the vehicles are stationary. ;)