playMaker

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

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Trigger Event Once Per Object
« on: February 12, 2016, 12: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

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: Trigger Event Once Per Object
« Reply #1 on: February 16, 2016, 11:26:57 PM »
Sounds cool man, i'll put it to good use!
Thanks a lot!

craigz

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
    • Haven Made
Re: Trigger Event Once Per Object
« Reply #2 on: August 22, 2017, 11:54:18 AM »
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: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Trigger Event Once Per Object
« Reply #3 on: August 30, 2017, 03: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: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Trigger Event Once Per Object
« Reply #4 on: August 31, 2017, 06: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

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
    • Haven Made
Re: Trigger Event Once Per Object
« Reply #5 on: September 09, 2017, 04: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