playMaker

Author Topic: Alex/ Jean - C# Destroy in Custom FSM [Solved]  (Read 3483 times)

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Alex/ Jean - C# Destroy in Custom FSM [Solved]
« on: July 03, 2017, 08:54:46 AM »
Hi,

It seems like I cannot called Destroy() in a playmaker FsmStateAction script (even though I can in a normal monodevelop c# script). Is there a reason for this, or a way I can work around it?

Thanks!

« Last Edit: July 03, 2017, 12:36:37 PM by tcmeric »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Alex/ Jean - C# Destroy in Custom FSM
« Reply #1 on: July 03, 2017, 10:37:36 AM »
Hi, i Looked on some of the standard actions and destroy is called like this :

Object.Destroy(something);

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Alex/ Jean - C# Destroy in Custom FSM [Solved]
« Reply #2 on: July 03, 2017, 12:36:09 PM »
Awesome, thanks for the tip!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Alex/ Jean - C# Destroy in Custom FSM [Solved]
« Reply #3 on: July 04, 2017, 05:55:51 AM »
Hi,

 So, the title next time should be "Alex / jean / djaydino "  ;D  ::)

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Alex/ Jean - C# Destroy in Custom FSM [Solved]
« Reply #4 on: July 04, 2017, 11:14:22 AM »
Hi,
Hehe :D

He's my only patron (atm) so i need to take good care if him :D

Your are excused (this time) :P