playMaker

Author Topic: Trigger Event Once Per Object  (Read 6904 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Trigger Event Once Per Object
« 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/

Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: Trigger Event Once Per Object
« Reply #1 on: February 17, 2016, 01:26:57 AM »
Sounds cool man, i'll put it to good use!
Thanks a lot!

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Trigger Event Once Per Object
« Reply #2 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)



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

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Trigger Event Once Per Object
« Reply #3 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-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Trigger Event Once Per Object
« Reply #4 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
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Trigger Event Once Per Object
« Reply #5 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

MAX_POWER

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Trigger Event Once Per Object
« Reply #6 on: February 11, 2018, 08:26:16 AM »
Is there a way to reset the hit list? Another action or anything like that?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Trigger Event Once Per Object
« Reply #7 on: February 12, 2018, 06:05:54 AM »
Hi.
Updated the action, please re-import
it should now have a reset option

18LSC

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Trigger Event Once Per Object
« Reply #8 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Trigger Event Once Per Object
« Reply #9 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.

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Trigger Event Once Per Object
« Reply #10 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Trigger Event Once Per Object
« Reply #11 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?