playMaker

Author Topic: State.Actions[] ordering help?  (Read 2634 times)

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
State.Actions[] ordering help?
« on: January 20, 2014, 09:33:22 AM »
Hi,

does the State.Actions[] array 1:1 reflects the ordering in the editor? So that the index ordering matches the visible action ordering?

I want to write a custom action that can enable/disable the "next" action, depending on some conditions.


Thx Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: State.Actions[] ordering help?
« Reply #1 on: January 21, 2014, 03:38:56 AM »
Hi,

 I would think so, but what you are trying to do sounds very dangerous.

 can you not separate your logic from your action? like in two different fsm and use events to communicate states and logics?

bye,

 Jean

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Re: State.Actions[] ordering help?
« Reply #2 on: January 21, 2014, 06:04:05 AM »
Hi,

 I would think so, but what you are trying to do sounds very dangerous.

 can you not separate your logic from your action? like in two different fsm and use events to communicate states and logics?

bye,

 Jean

If the order is what u see in the editor, than i don't see whats "very dangerous"? Thats why i asked here.

I also just start to play around with this action a bit, not sure if we want to fully use it yet.

I still have problems creating FSM's that only have the actual minimal states needed for the logical mapping of a objects logic, rather than adding states that only emulates if/else cases. Still not fully used to PM, since in UDK i could dynamically override a state at a script level, while in PM i can only change/setup specific actions. So compared to script, its sometimes really hard to setup/do If/else logic correctly.

thx Andy