Home   Help Search Login Register  

Author Topic: True if Engine is Off  (Read 693 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
True if Engine is Off
« on: 21 Sep 2003, 16:13:37 »
Hi! Is there a way to turn a value true if the engine of a specifik vehicle has turned off it's engine?

Cheers!

:beat: *Gets Shot* :beat:

_Ross_

  • Guest
Re:True if Engine is Off
« Reply #1 on: 21 Sep 2003, 21:38:26 »
for 1.91 there are 2 new commands

engineon
isengineon

thats all i know i saw them in the 1.91 readme but i cant find anything else

heres my guess
mycar engineon true
« Last Edit: 21 Sep 2003, 21:40:40 by _Ross_ »

Drozdov

  • Guest
Re:True if Engine is Off
« Reply #2 on: 21 Sep 2003, 22:06:27 »
Methinks you mean...

cake engineon false

Or in a script...

?(!engineon cake): goto 'arse'

Variables are case sensitive you understand ;)

I've never used this so it may not work, but logically it ought to.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:True if Engine is Off
« Reply #3 on: 21 Sep 2003, 22:10:02 »
Cheers guys, gotta check this out as soon as my brother gets his fat arse off my chair so I can access my comp.

:beat: *Gets Shot* :beat:

KyleSarnik

  • Guest
Re:True if Engine is Off
« Reply #4 on: 22 Sep 2003, 00:10:10 »
hmm this command may be usefull for an ejection seat script....

All you scripters head over here and have a look:
http://www.ofpec.com/yabbse/index.php?board=12;action=display;threadid=13203;start=0;boardseen=1
« Last Edit: 22 Sep 2003, 00:25:58 by KyleSarnik »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:True if Engine is Off
« Reply #5 on: 22 Sep 2003, 17:49:50 »
Doesn't work m8s, and I can't find the syntax in the command reference :-\

:beat: *Gets Shot* :beat:

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:True if Engine is Off
« Reply #6 on: 22 Sep 2003, 18:08:11 »
In a trigger: isengineon vehicle_name

or in a script: ?(isengineon vehicle_name): do whateva

or in a script too: @isengineon vehicle_name

This checks, if the engine of given vehicle is on.

Off course you can check it vice versa with: not isengineon
or !isengineon

:edit - and Drozdov

Variables are case sensitive?

I can't follow you - iSeNGiNeoN vehicle_name does also work

I mean i know what you mean, but variables aren't case sensitive in every case, like inside the ofp mission editor.
Surely, in some cases they are, but not here.

~S~ CD
« Last Edit: 22 Sep 2003, 18:13:32 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:True if Engine is Off
« Reply #7 on: 22 Sep 2003, 18:14:39 »
Of course, only tried the engineon, not the isengineon.

Cheers!

#Locked

:beat: *Gets N00bed* :beat: