AI stuck in space battle

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
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

AI stuck in space battle

Post by CT108 »

Hi everyone

I'm making a space battle, but after that I've added and removed this
Hidden/Spoiler:
[code]
OnCharacterEnterVehicle(
function(player, vehicle)
if (GetEntityClass(vehicle) == GetEntityClassPtr("rep_fly_gunship_sc")) then
if not IsCharacterHuman(player) then
SetProperty(vehicle, "DisableTime", 0.25)
end
end
)[/code]
from my ***c_Diet Dr. Pepper.lua , every CLONES are stuck, not the droids. So my question : how can I make the AI not stuck ?

Thanks for the help ! :)
Post Reply