PlaceholderGames / DinoPark-2017

repo for Dino Park 2017, the testbed for CS3S667
2 stars 0 forks source link

Enable script, enables wrong script #54

Open ghost opened 6 years ago

ghost commented 6 years ago

any help would be appreciated! So i have the script "Face" attached to my dino, when i enable this script, my wander script enables for some reason.

screenshots showing implementation: image

image image

image

in my attack state: image

but doing so enables wander instead

LiamVallance commented 6 years ago

Ensure you are enabling the script on state enter, ensure you disable any script used in a state when leaving the state, however sometimes there can be a minor conflict so it might be worth adding an additional "_owner.wanderBehaviourScript.enabled = false;" also in the attack state. I had a very similar conflict between my drinking state and my herding state and that fixed it

ghost commented 6 years ago

Thanks liam but still didnt work :/

LiamVallance commented 6 years ago

Damn, if you are in tomorrow and still don't have it working i will have a look and see if it is a similar problem to mine

ghost commented 6 years ago

Thanks :D