Home   Help Search Login Register  

Author Topic: guy cant leave a vehicle  (Read 639 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
guy cant leave a vehicle
« on: 13 May 2004, 00:11:45 »
How do you make it so a person inside a vehicle does not get out, even if the vehicle is getting shot at or is damaged?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:guy cant leave a vehicle
« Reply #1 on: 13 May 2004, 00:15:13 »
guy setdammage 1  ;D

(j/k)

I'm not quite sure atm as i weren't in the need for that yet,
but you could give it a try setting the guy's behaviour to
"CARELESS".

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

j-man

  • Guest
Re:guy cant leave a vehicle
« Reply #2 on: 13 May 2004, 02:36:19 »
Just lock the vehicle

vehicle lock true

this means that nobody can get in/out of the vehicle

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:guy cant leave a vehicle
« Reply #3 on: 13 May 2004, 02:44:51 »
Just lock the vehicle

vehicle lock true

this means that nobody can get in/out of the vehicle

Too bad that AI doesn't worry about wether the vehicle is
locked or not.  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Kammak

  • Guest
Re:guy cant leave a vehicle
« Reply #4 on: 13 May 2004, 03:23:26 »
That was the first thing I tried when I read the post.  As CD points out, LOCKing only applies to the player.

I can't find a solution to this one, after trying a couple different things.

Unnamed

  • Guest
Re:guy cant leave a vehicle
« Reply #5 on: 13 May 2004, 08:35:48 »
I think there is a setting in the Config that ejects passangers if there under fire, but this is probably not what your after?

You can setup a script for the Getout event that forces the unit back into the vehicle, but this results in a flickering effect if you look to closely.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:guy cant leave a vehicle
« Reply #6 on: 13 May 2004, 16:27:18 »
Unnamed: Ain't there a Get Out Eventhandler? Maybe do something like that?

An other idea is to setdammage the vehicle back to 0 all the time... Maybe something that you don't want to do though. :P

:beat: *Gets Shot* :beat:

Unnamed

  • Guest
Re:guy cant leave a vehicle
« Reply #7 on: 13 May 2004, 20:57:36 »
Code: [Select]
"getin" and "getout" (to vehicles only) :
_this select 0 : the vehicle the EH is attached to ;
_this select 1 : in/from what position (driver, gunner, commander, cargo) ;
_this select 2 : who's just got in/out ;

The Getout event along with MoveInCargo and the position parameter e.t.c works ok regardless of damage, aslong as its viewed from a distance.

But as the config.cpp has the following defined by default for the LandVehicle class, they will bail even if there is no damage. So you would need the some what brutal method I described above.

Code: [Select]
unloadInCombat = true;
Although I dont think this applies to the driver. Unless as you say, the car is badly damaged and cant move.

« Last Edit: 13 May 2004, 21:02:11 by Unnamed »