playMaker

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

tcmeric

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Alex/ Jean - C# Destroy in Custom FSM [Solved]
« on: July 03, 2017, 05: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, 09:36:37 AM by tcmeric »

djaydino

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

Object.Destroy(something);

tcmeric

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Alex/ Jean - C# Destroy in Custom FSM [Solved]
« Reply #2 on: July 03, 2017, 09:36:09 AM »
Awesome, thanks for the tip!

jeanfabre

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

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

Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2265
    • View Profile
    • jinxtergames
Re: Alex/ Jean - C# Destroy in Custom FSM [Solved]
« Reply #4 on: July 04, 2017, 08: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