Firstborn/Assets/RPG Creation Kit/Scripts/AI/Creature AI/CreatureAI.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

29 lines
699 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
using RPGCreationKit.AI;
namespace RPGCreationKit
{
public class CreatureAI : RckAI
{
public GameObject assignedModel;
public bool validAssignedModel = false;
public GameObject[] toDisableOnDeath;
public override void OnEnterInCombat()
{
base.OnEnterInCombat();
DrawWeaponEvent();
canAttack = true;
}
public override void Die()
{
base.Die();
for (int i = 0; i < toDisableOnDeath.Length; i++)
toDisableOnDeath[i].SetActive(false);
}
}
}