Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mn6000 on March 24, 2017, 07:40:49 PM

Title: How to call a public static event from playmaker
Post by: mn6000 on March 24, 2017, 07:40:49 PM

public delegate void UpdateGameObject();
public static event UpdateGameObject OnMove;

Hi, I have an event above which I want called by playmaker.

I'm looking at SendEvent Action and it wants me to specify a gameobject and a playmaker event.

I'm a little confused by this since I only want to call OnMove().

Do I want to use SendEvent or is there another action I should use?

Thank you.

Title: Re: How to call a public static event from playmaker
Post by: jeanfabre on April 10, 2017, 02:23:28 AM
Hi,

 For this you'll need to write a dedicated actions that access your onMove delegate.

If you are not comfortable with writing an actions, I can do it for you so that you have a base, it's not complicated.

 Bye,

 Jean