Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: nightcorelv on April 02, 2018, 12:34:09 PM

Title: FSM Communication actions V2
Post by: nightcorelv on April 02, 2018, 12:34:09 PM
Hi
I'm made more FSM actions, because I don't like to put all the state in an FSM. It's will get confused and lose controls, I prefer to put all variables in an FSM, and let other small FSMs to control this FSMs variable.

Action list:
fsm float flip
fsm float operator
fsm float switch
fsm gameobject compare
fsm gameobject compare tag
fsm gameobject is null
fsm int flip
fsm int operator
fsm int switch
fsm string switch
fsm string is null or empty

Array :
fsm array add
fsm array addrange
fsm array clear
fsm array delete at
fsm array get next
fsm array get random index
fsm array length
fsm array remove
fsm array remove all
fsm array resize
fsm array reverse
fsm array shuffle
fsm array sort (not tested)
fsm array swap items
fsm array transfer value

hope you guys enjoy it.
Title: Re: FSM Communication actions V2
Post by: jeanfabre on April 03, 2018, 06:40:17 AM
Hi,

 that's great!! but you should put them on the Ecosystem!

 Bye,

 Jean
Title: Re: FSM Communication actions V2
Post by: nightcorelv on April 03, 2018, 10:08:21 AM
sure, Ecosystem helps me easier get on my other computers

Hi,

 that's great!! but you should put them on the Ecosystem!

 Bye,

 Jean
Title: Re: FSM Communication actions V2
Post by: rainexplorer on April 19, 2018, 10:08:59 PM
Hi,

any example How to use this ?

because i'm not so good at coding...
Title: Re: FSM Communication actions V2
Post by: djaydino on April 20, 2018, 01:39:34 AM
Hi.
@rainexplorer.

The actions works similar as the normal actions (without fsm in front)
for example 'Fsm String Switch' works the same as 'String Switch'
Except that you can target/use variables on a different fsm without setting them global.
Title: Re: FSM Communication actions V2
Post by: tcmeric on April 22, 2018, 02:04:00 PM
Nice, very helpful. Thank you!
Title: Re: FSM Communication actions V2
Post by: djaydino on May 18, 2018, 05:06:25 AM
Hi.
I have updated the actions and added them to the ecosystem.
Title: Re: FSM Communication actions V2
Post by: SamH on January 20, 2021, 07:35:40 PM
Thanks for these actions!
If I could add one bit of feedback- the 'fsm int switch' can be a little confusing because it doesn't quite act like the regular 'int switch'.
Instead of providing set int values to trigger an event, it will only compare if an int is 'less than' a given value.   I couldn't work out why my switch was firing off the wrong events until I realized this slight difference in behaviour.
Also its a little weird for an int, given it has to be whole numbers.
eg To check for value '1', I have to test for 'less than 2'. I also have to put in a null 'less than 1' if I don't want an int of value of 0 to fire this event.
But thanks again for all of these!