Forum rules - please read before posting.

Keep out of Player's Way? check/uncheck on Runtime

edited December 16 in Technical Q&A

Hi
In unity 6.2 , AC 1.84 direct 3d, mouse keyboard,
I have npcs with theTag FF . keep out of players way is checked.
player uses this function to lead each of them to some spots/Triggers. If an NPC FF colides with this trigger, he will move to Point/Marker.
This is the time i want to call event for this Collider Parameter Gameobject, but in call events i can not call this object(p)
what i I need but can't do it by now, is to Uncheck " keep out of players way " for each npc who is arrived on destination point. so it does not go anywhere any more.
i tried making a method and use through "Send message" but seems that api is not accessible on runtime.
Any alternatives/suggestions/guidance?

Thanks

Comments

  • You can set this through script via the moveOutOfPlayersWay variable:

    GetComponent<AC.NPC>().moveOutOfPlayersWay = false;
    

    To call this via an Action, place this in a custom script function attached to the NPC and use either the Object: Call event or Object: Send message Action to run that function.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.