EnterVehicle
Forces NPC to enter into a vehicle if it's near to it
Syntax
EnterVehicle 1
-- NPC enters into vehicle
Example
// (from ai_mission_mc.p3s)
st_return_to_vehicle
{
group Neutral
patterns
{
pt_default:ignore_ext_events
{
actions
{
SetAttr "OnSegway 0"
TargetVehicle vehicle_driver_exit
MoveToTarget true,0.5
Repeat 3
}
events
{
// Target reached, so try entering into vehicle
OnTargetReach "EnterVehicle 1"
OnEnteredVehicle "Pattern pt_vehicle"
}
}
}
}