|
Post by witchthewicked on Dec 6, 2019 8:30:01 GMT
From AiAction FSMBehaviour I need to get a handle to the player. I tried this but it doesn't actually give me the gameobject instance when i have multiple gameobjects that use Instantiiate.
public override void DoAction(vIFSMBehaviourController fsmBehaviour, vFSMComponentExecutionType executionType = vFSMComponentExecutionType.OnStateUpdate)
{
fsmBehaviour.transform.gameObject.GetComponent<Whatever>(); }
|
|
|
Post by Invector on Dec 9, 2019 14:55:26 GMT
What do you mean by "get a handle to the player"?
If you're AI Controller has the component it will access it, also every controller that use this action need to have the component as well
|
|