playMaker

Author Topic: Generic Playmaker FSM  (Read 3230 times)

Sly

  • Full Member
  • ***
  • Posts: 123
Generic Playmaker FSM
« 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?
 

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Generic Playmaker FSM
« Reply #1 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.



Sly

  • Full Member
  • ***
  • Posts: 123
Re: Generic Playmaker FSM
« Reply #2 on: August 25, 2011, 03:18:59 PM »
I like the prefab way! I will try this.
Thanks man for all this good ideas!