System Events not firing events for instantiated player prefab
Posted: Thu Jun 16, 2022 11:38 pm
Total newb here with the first of probably many questions! Appreciate any help =)
I'm just getting some basics out of the way and am trying to get the Dialogue System Events component to disable my player's movement when a conversation starts and re-enable it when a conversation ends. I'm trying to this by disabling/enabling the bool enabled setting on the player's movement script. It seems like I have everything set up properly in the inspector, but it's just not working.
I think it might be related to the fact that my player is instantiated into the scene and is not part of scene hierarchy.
I tried dragging both the prefab from the project window and then also the player game object from the hierarchy (when the prefab is open) but neither seems to fire off the events. Manually disabling my script while playing does work so I know I'm hitting the right script to disable movement.
Any ideas what I could be missing? Seems very basic but I can't get it to work. Thanks!
I'm just getting some basics out of the way and am trying to get the Dialogue System Events component to disable my player's movement when a conversation starts and re-enable it when a conversation ends. I'm trying to this by disabling/enabling the bool enabled setting on the player's movement script. It seems like I have everything set up properly in the inspector, but it's just not working.
I think it might be related to the fact that my player is instantiated into the scene and is not part of scene hierarchy.
I tried dragging both the prefab from the project window and then also the player game object from the hierarchy (when the prefab is open) but neither seems to fire off the events. Manually disabling my script while playing does work so I know I'm hitting the right script to disable movement.
Any ideas what I could be missing? Seems very basic but I can't get it to work. Thanks!