Force AI out of vehicle region?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Force AI out of vehicle region?

Post by elfie »

Hey all,

I read the topic on forcing ai into a vehicle, but I became curious as to whether I could reverse the script to force ai out of a vehicle. (Sorry if I missed anything in the scripting guide, because I only really skimmed it.) Any ideas at all would be appreciated, because this is one aspect I can't seem to get the AI to do. They follow the paths and barriers fine, but once the planning path ends they just sit in the vehicle and never really exit it. Thanks in advance!
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Force AI out of vehicle region?

Post by Fiodis »

Instead of the EnterVehicle LUA code, have you tried the logical first step: ExitVehicle? I'm not sure if it works, myself, but it's an idea.

EDIT - Yeah, a search of all known LUA functions does turn up ExitVehicle, so that should work.
Post Reply