Home   Help Search Login Register  

Author Topic: Force aP engine off  (Read 494 times)

0 Members and 3 Guests are viewing this topic.

illmatic

  • Guest
Force aP engine off
« on: 23 Apr 2004, 19:29:07 »
aP is the player and im wanting to force his engine off and on.

aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]
~3
aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]
~3
aP action ["ENGINEON"]
~3
aP action ["ENGINEOFF"]

these commands dont force him too... any ideas  ??? :-X

if ur wondering why i want the engine on and off, its because of engine failure.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Force aP engine off
« Reply #1 on: 23 Apr 2004, 21:15:00 »
Try:

aP action ["ENGINEON", vehicle aP]


Planck
I know a little about a lot, and a lot about a little.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Force aP engine off
« Reply #2 on: 24 Apr 2004, 03:28:18 »
Quote
aP is the player and im wanting to force his engine off and on.

Not sure if you can use this command for Player controlled units.

try instead:

planename setfuel 0

and

planename setfuel 1

to simulate engine failure

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Force aP engine off
« Reply #3 on: 24 Apr 2004, 05:45:58 »
Hmmm........I should read the whole post properly.

I forgot aP was the player.


 ;D


Planck
I know a little about a lot, and a lot about a little.

illmatic

  • Guest
Re:Force aP engine off
« Reply #4 on: 24 Apr 2004, 12:27:32 »
:(, with the fuel method i already tried it, the engine doesnt turn back on once you refil the fuel.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Force aP engine off
« Reply #5 on: 24 Apr 2004, 12:49:18 »
I think engineon is a vehicle situation, not a unit, so try
vehicle player engineon true
vehicle player engineon false

or may require:
vehiclenameengineon true(and false)

I know, people are vehicles too but in this situation, vehicle actually does mean vehicle!


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Force aP engine off
« Reply #6 on: 24 Apr 2004, 13:19:09 »
vehicle player engineon true
vehicle player engineon false

This does work, however if the player presses forward the engine will not stay off

The engine will be switched off again once the player releases his forward key, provided he is still withih the trigger area.............I used a trigger to switch engine off and the player init field to switch it on at the beginning.

Maybe in combination with setfuel 0 this will work



Planck
« Last Edit: 24 Apr 2004, 13:20:59 by Planck »
I know a little about a lot, and a lot about a little.

illmatic

  • Guest
Re:Force aP engine off
« Reply #7 on: 24 Apr 2004, 13:47:02 »
ook guys thx, works