Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sly on August 25, 2011, 01:51:37 PM

Title: Generic Playmaker FSM
Post by: Sly on August 25, 2011, 01:51:37 PM

Hello,

Just a little question: With playmaker Is it possible to create template/basic FSM used on different gameobject?
For give you an example, I want all my enemies use the same FSM AIBehavior I created, without duplicate the FSM for each of them. (don't need to duplicate it if using exactly the same behavior, and light size project)
Is it possible?
 
Title: Re: Generic Playmaker FSM
Post by: Damian on August 25, 2011, 02:12:56 PM

Hello,

Just a little question: With playmaker Is it possible to create template/basic FSM used on different gameobject?
For give you an example, I want all my enemies use the same FSM AIBehavior I created, without duplicate the FSM for each of them. (don't need to duplicate it if using exactly the same behavior, and light size project)
Is it possible?
 

I guess there is many ways you can do this, so here is one.
Make a empty game object that you put a FSM that has your AI.
On all enemies you make one fsm to that talks to this.
If you want to do any change in the ai you do it in one place.

If you enemies is a prefab then put the fsm on that.
Sure it will be some more FSM, but i guess that is better.

For if the enemies the same then its better you use them as a prefab and spawn them where you like them.
If they are not same then you might not even want exactly the same AI.


Title: Re: Generic Playmaker FSM
Post by: Sly on August 25, 2011, 03:18:59 PM
I like the prefab way! I will try this.
Thanks man for all this good ideas!