|
Post by illustrator on Aug 13, 2019 15:51:31 GMT
I've setup World variable "CoreHealth":
and when the value gets to zero it triggers game status: game over, so far everything is all right.
Now, is there a way to get access to this Game Over status from Playmaker? There does not seem to be a custom action for that.
|
|
|
Post by DarkTonic Dev on Aug 13, 2019 16:05:44 GMT
You wouldn't use an action for that. You should use the Level Settings Playmaker Listener, which has settings for Win, Lose, and Game Over. You can point whichever of those to an event in your FSM.
|
|
|
Post by illustrator on Aug 14, 2019 16:18:20 GMT
Like this:
I put Level settings playmaker listener script, Killable script and Playmaker FSM to the same game object but it does not switch the FSM state when Game over is triggered by World variable. Is there something else I need to do?
|
|
|
Post by DarkTonic Dev on Aug 14, 2019 16:21:15 GMT
LevelSettingsPlaymakerListener component goes on the LevelSettings game object, otherwise it's probably not hooked up at all. To see if it's hooked up, go see what the "Listener" field of Level Settings says. If it says "none" then it's not hooked up.
So your FSM should also live there.
|
|
|
Post by illustrator on Aug 14, 2019 16:46:43 GMT
Okay, I'll try that and get back to you.
|
|
|
Post by illustrator on Aug 14, 2019 16:54:24 GMT
It's working. Excellent!
Now that I'm getting better understanding what Core GameKit can do and how to configure it I really like it. It's really well thought and handy asset.
|
|
|
Post by DarkTonic Dev on Aug 14, 2019 18:51:20 GMT
No problem!
|
|