Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: mdotstrange on February 12, 2016, 02:43:34 AM

Title: Trigger Event Once Per Object
Post by: mdotstrange on February 12, 2016, 02:43:34 AM
Same functionality as Trigger Event except a specific game object will only activate the trigger event a single time.

https://snipt.net/mdotstrange/trigger-event-once-per-object/ (https://snipt.net/mdotstrange/trigger-event-once-per-object/)

Title: Re: Trigger Event Once Per Object
Post by: clandestine on February 17, 2016, 01:26:57 AM
Sounds cool man, i'll put it to good use!
Thanks a lot!
Title: Re: Trigger Event Once Per Object
Post by: craigz on August 22, 2017, 02:54:18 PM
Hey Michael! :D

Sorry for the necro on this thread, but wanted to ask:

With the Unity 2017 update I've been getting some weird functionality with this action, is this how it's supposed to look? (run time capture)

(http://i.imgur.com/ISXs0UD.png)

Could have sworn there used to be something next to 'Already Hit'.

Also does it clear the list after being used normally? (when disabling/reenabling the FSM)? Getting some sporadic results if so... xD

Thanks for making this, SO useful :D

Let me know!

-craigz
Title: Re: Trigger Event Once Per Object
Post by: mdotstrange on August 30, 2017, 06:30:40 AM
Hey there sorry for the late reply- haven't been on the forum in months as I was lost in C# land  :)

It's not supposed to have that line- I'll take a look at the action tomorrow and see if I can update it + re-upload it

I'm glad it's useful- I have a ton of custom Playmaker actions and Behavior Designer tasks I've made over the past year so I'll prob be adding some new stuff here too-
Title: Re: Trigger Event Once Per Object
Post by: mdotstrange on August 31, 2017, 09:19:49 PM
Here you go- I don't even know how the other one worked as I didn't declare a list in it correctly  :o Fixed the UI thing too- let me know if it works ok- thx
Title: Re: Trigger Event Once Per Object
Post by: craigz on September 09, 2017, 07:45:09 PM
Sorry for the delay ;) just moved and got the interwebs back! :D

Works like a charm now! So thank you :)

And oh gosh yeah, so many of your actions have been super useful. It's funny running into the same gameplay fringe areas where it's like I just need something that does [insert nongeneral action here]. Then finding you made it :P

Thanks again!

-craigz
Title: Re: Trigger Event Once Per Object
Post by: MAX_POWER on February 11, 2018, 08:26:16 AM
Is there a way to reset the hit list? Another action or anything like that?
Title: Re: Trigger Event Once Per Object
Post by: djaydino on February 12, 2018, 06:05:54 AM
Hi.
Updated the action, please re-import
it should now have a reset option
Title: Re: Trigger Event Once Per Object
Post by: 18LSC on April 13, 2018, 09:47:11 AM
Hi.
Updated the action, please re-import
it should now have a reset option

Hey, I just got this useful action (Thanks! :D), but I was wondering what the last line "Already hit" is for?

I got the most recent update of this from ecosystem
Title: Re: Trigger Event Once Per Object
Post by: djaydino on April 13, 2018, 01:38:55 PM
Hi.
Oops, thanks for noticing.

That variable should be private (not view-able in the action)
It does some stuff behind the scenes ;) for that action.

Updated the action.
Title: Re: Trigger Event Once Per Object
Post by: craigz on April 24, 2018, 02:54:03 PM
Noticed the new version of this action on the Ecosystem is getting a Null Reference Exception that disables the FSM? Something to do with Trigger Target object?
Title: Re: Trigger Event Once Per Object
Post by: djaydino on April 24, 2018, 05:05:05 PM
Hi,
I will check it out tomorrow (need to sleep now :) ),
Do you know when this happens or do you have a sample or video?