Jump to content
Sign in to follow this  
The_Captain

Engineon && isengineon

Recommended Posts

Playing around with the command... what does it take? I tried slick engineon false to no avail...thanks in advance.

Trying to make an autorotate script for choppers to land quickly, and I want the engines off independant of the state of the crew. I can do it with the actions, but I want to know how the new command works.

Thanks

The Captain

Share this post


Link to post
Share on other sites

OK, here's what I got: I've only used engineOn once, and it worked:

context: in the init field of a grounded helicopter at the start of a mission

syntax: this engineOn true

result: I sat there doing nothing and the engines started up by themselves...

I'm guessing that unit engineOn false will work the opposite way...but from what you've said, you tried it out and it didn't work? maybe setting it to false is buggy/doesn't work, and we can only turn engines on with it at present...dunno

isEngineOn I haven't used yet, but I'm guessing that the syntax is the same as most other "get" functions in ofp, so: _myboolean isEngineOn unit would return the state of their engines (you probably already thought of that though, but I can't be bothered deleting... biggrin.gif )...

Good luck with getting it to work...

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  

×