playMaker

Author Topic: How do you detrsoy a playmaker FSM (Solved)?  (Read 2577 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
How do you detrsoy a playmaker FSM (Solved)?
« on: April 04, 2015, 06:13:54 PM »
I have a tank that is used in a menu (spinning via playmaker) and during the actual combat.  So I want to destroy the playmaker FSM that spins it.  I have tried but get this error.  I THINK I have spelled the component wrong.  What am I missing?



==============================
MAN-S02-Help : FSM : Vehicles-ON : DestroyComponent : No such component: Play Maker FSM
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String)
HutongGames.PlayMaker.FsmStateAction:LogError(String)
HutongGames.PlayMaker.Actions.DestroyComponent:DoDestroyComponent(GameObject) (at Assets/PlayMaker/Actions/DestroyComponent.cs:43)
HutongGames.PlayMaker.Actions.DestroyComponent:OnEnter() (at Assets/PlayMaker/Actions/DestroyComponent.cs:31)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:DoTransition(FsmTransition, Boolean)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent)
HutongGames.PlayMaker.Fsm:Event(FsmEvent)
HutongGames.PlayMaker.Actions.uGuiButtonOnClickEvent:DoOnClick() (at Assets/PlayMaker Custom Actions/uGui/uGuiButtonOnClickEvent.cs:56)
UnityEngine.EventSystems.EventSystem:Update()
« Last Edit: April 04, 2015, 07:56:13 PM by wheretheidivides »

TheBadFeeling

  • Junior Playmaker
  • **
  • Posts: 66
Re: How do you detrsoy a playmaker FSM?
« Reply #1 on: April 04, 2015, 06:39:50 PM »
If you need to destroy the FSM component, you must write it this way: PlayMakerFSM -- not Play Maker FSM.

A good way of getting a hint of a components internal name is trying to drag and drop the component into a PlayMaker state (and choosing Get Property).  ;)

/Bad
The Force is with you, young Playmaker – but you are not a C# senpai yet.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: How do you detrsoy a playmaker FSM?
« Reply #2 on: April 04, 2015, 07:55:50 PM »
Yep.  No space.  That did it.  Thanks.