playMaker

Author Topic: ...just another big Custom Action collection (A-L)  (Read 10097 times)

Deek

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #30 on: January 14, 2019, 08:41:01 AM »
@Jean

Whoops, sorry about that one.
Though I've added the String Append action at the end of March 2018, is the built-in String Append action new or has this gone unnoticed for that long?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14593
  • Official Playmaker Support
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #31 on: January 15, 2019, 05:48:05 AM »
Hi,

 seems so :)

 Bye,

 Jean

Twood

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #32 on: August 05, 2019, 04:40:15 PM »
@Deek

is there a way to remove the error from Get Game Object Sibling if there's no sibling found? I don't always want it to find something anyway... i.e. it's checking cards to the left and right and there might not be one there. Anyway what I want to do with the cards works fine I can give a sort of spreading and zooming effect with cards as I'm mousing over to highlight the current one, but it still throws an error up in the console because that action doesn't like a null result.

Deek

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #33 on: August 06, 2019, 12:49:09 AM »
Hey Twood,
I've adjusted the action a bit, so that it checks if the sibling-index is out-of-bounds and added a Not Found Event option, so that it optionally sends an event if that happens.
I can only test it when I'm back home, but if you're eager to try it out in the meantime, you can find the action in the attachments.
I will reply later if I found any errors, but it should work just fine.

Twood

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #34 on: August 06, 2019, 09:31:22 AM »
@Deek

Thanks for the response! Tried that new code just now and I am getting an error from it:

Assets\PlayMaker Custom Actions\GameObject\GetGameObjectSibling.cs(45,7): error CS0246: The type or namespace name 'Transform' could not be found (are you missing a using directive or an assembly reference?)

Deek

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #35 on: August 06, 2019, 12:51:58 PM »
@Twood

Oh yea, a common mistake. At least I know had the time to test the action and managed to further improve the action:
- fixed saving the result name in the 'Store Result Name' option
- made the 'Store Result Name' option only allow FsmVariables to store the name in
- the 'Not Found Event' is now also raised if the parent is null, speak if trying to get the sibling of a root GameObject

Updated version is in the attachments, should be working fine now. If you find any other errors or wan't another action to behave differently, please let me know.

Twood

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #36 on: August 06, 2019, 02:19:06 PM »
Most appreciated! Works great! ;D

dsimovski

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #37 on: September 06, 2019, 08:22:19 AM »
Hi,

thank you for the great Actions!

I have a problem with Activate Gameobjects Advanced, i can only run it once. When i return with a global Transition the the State it doesnt do anything.

Any Ideas ?

Yours
Damir

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4586
    • View Profile
    • jinxtergames
Re: ...just another big Custom Action collection (A-L)
« Reply #38 on: September 06, 2019, 11:28:44 AM »
Hi.
Can you show an image of the action setup.

IF it is set to owner the fsm will be disabled and a global transition will not be received.

Deek

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: ...just another big Custom Action collection (A-L)
« Reply #39 on: September 08, 2019, 01:21:03 PM »
Nah, the fault is on my end..
For the ability to reset the the changed GameObjects on exit I had to keep track of what objects had been altered but forgot to reset that list in OnEnter. Fixed version is in the attachments.

Thanks for pointing out that error and sorry for the inconvenience.