Search found 2 matches

by James
Wed Oct 13, 2021 8:43 pm
Forum: Dialogue System for Unity
Topic: Best practice to get GameObject of conversant whose conversation called a registered Lua function?
Replies: 3
Views: 421

Re: Best practice to get GameObject of conversant whose conversation called a registered Lua function?

Thanks a lot for the reply! In the mean time, I was researching some more and it seems that I can use the Sequence field with "SendMessage(attackPlayer,,listener)" to achieve what I wanted. Took me some time to find that because I did not expect the Sequence field to be relevant for me and...
by James
Wed Oct 13, 2021 7:49 pm
Forum: Dialogue System for Unity
Topic: Best practice to get GameObject of conversant whose conversation called a registered Lua function?
Replies: 3
Views: 421

Best practice to get GameObject of conversant whose conversation called a registered Lua function?

My situation is the following: I have multiple enemies in the scene (GameObject + Monobehavior), who will start a conversation with the player on sight. Depending on the answers, I want the enemies to attack the player, which is basically done by calling a function of the enemy. I tried doing this w...