Page 1 of 1

Force AI out of vehicle region?

Posted: Wed Oct 14, 2009 5:27 pm
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!

Re: Force AI out of vehicle region?

Posted: Wed Oct 14, 2009 5:35 pm
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.