I know there is a command for preventing AI from entering vehicles/turrets. I've used it before. But I cannot for the life of me find this stupid odf command.. anyone know off hand?
is it like:
DisableAI = "0" or something like that?
Another thing. I have a couple of tanks that the AI just refuse to use, anyone know a way to force the AI to enter vehicles? Or suggestions on how to make it more likely they will enter? I have placed pathing next to the tanks and such, but no luck on getting them to use them. I normally don't have a problem with them getting into vehicles, but on this map they are being problematic.
How do you prevent ai from entering a vehicle/building?
Moderator: Moderators
-
The_Emperor
- Supreme Galactic Ruler
- Posts: 2118
- Joined: Sat Dec 10, 2005 6:30 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Waaaaay over there.
RE: prevent ai from entering vehicle/building?
NoEnterVehicles = 1 in the odf to prevent them from getting into vehicles/turrets.
I don't know the solution to the other problem though
I don't know the solution to the other problem though
-
xwingguy
sigh...I've already posted this before...just stick this into scriptpostload
OnCharacterEnterVehicle(
function(player, vehicle)
if (GetEntityClass(vehicle) == GetEntityClassPtr("NameOfVehicleClassInQuotes")) then
if not IsCharacterHuman(player) then
SetProperty(vehicle, "DisableTime", 0.25)
end
end
)
OnCharacterEnterVehicle(
function(player, vehicle)
if (GetEntityClass(vehicle) == GetEntityClassPtr("NameOfVehicleClassInQuotes")) then
if not IsCharacterHuman(player) then
SetProperty(vehicle, "DisableTime", 0.25)
end
end
)
-
archer01
Someone, I can't remember who or where, wrote a small script that booted AI out of a vehicle if they tried to enter it. Try searching for it in the forums.
If you can't find that, you could try the NoEnterVehicles solution above.
Or you could try using SetAIVehicleNotifyRadius(0) in your lua script. That's the range in which AI seek vehicles to enter is it not?
If you can't find that, you could try the NoEnterVehicles solution above.
Or you could try using SetAIVehicleNotifyRadius(0) in your lua script. That's the range in which AI seek vehicles to enter is it not?
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
