fix: Accessed None 'OwnerController' (Ext_AICommandBasePet:ZedBaseCommand)
ScriptWarning: Accessed None 'OwnerController' 011Ext_AICommandBasePet KF-AnimeDance.TheWorld:PersistentLevel.KFAIController_ZedHusk_0.Ext_AICommandBasePet_0 011State ServerExt.Ext_AICommandBasePet:ZedBaseCommand:047B
This commit is contained in:
parent
de4b7ff714
commit
bec774b38c
@ -69,8 +69,13 @@ Begin:
|
||||
|
||||
// See if we are close to our owner
|
||||
RecheckOwner:
|
||||
OwnerPawn = Ext_T_MonsterPRI(PlayerReplicationInfo)!=None ? Ext_T_MonsterPRI(PlayerReplicationInfo).OwnerController.Pawn : None;
|
||||
if (OwnerPawn!=None)
|
||||
OwnerPawn = None;
|
||||
if (Ext_T_MonsterPRI(PlayerReplicationInfo) != None
|
||||
&& Ext_T_MonsterPRI(PlayerReplicationInfo).OwnerController != None)
|
||||
{
|
||||
OwnerPawn = Ext_T_MonsterPRI(PlayerReplicationInfo).OwnerController.Pawn;
|
||||
}
|
||||
if (OwnerPawn != None)
|
||||
{
|
||||
if (Enemy!=None && LineOfSightTo(OwnerPawn) && LineOfSightTo(Enemy)) // We have sight to our owner and can see enemy, go for it!
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user