playMaker

Author Topic: Set string based on GetTrigger 2d Info Value?  (Read 541 times)

stanimal

  • Playmaker Newbie
  • *
  • Posts: 11
    • Clean Energy Creatures
Set string based on GetTrigger 2d Info Value?
« on: April 05, 2021, 11:57:06 PM »
I'd like to set the value of a string variable based on the value of the Game Object Hit variable generated by Get Trigger 2d Info Value action.

Is there a way to call on that Object type variable and set that value as a string? Ideally via an FSM.

Pretty newb-ish over here, so go on easy on me if it's obvious.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Set string based on GetTrigger 2d Info Value?
« Reply #1 on: April 06, 2021, 08:00:53 AM »
Hi.

Its not needed to use Bold and underline for your question. :)

with trigger event you can store the object that triggered.

Then you can use 'Get/Set Fsm String' with the object that you got from the trigger.

The sample below is using prefab but it has similar principals :


stanimal

  • Playmaker Newbie
  • *
  • Posts: 11
    • Clean Energy Creatures
Re: Set string based on GetTrigger 2d Info Value?
« Reply #2 on: April 06, 2021, 08:17:53 AM »
Thanks for your help! I'll give this a shot today.

I've gotten in the habit of bolding and underlining the key points of emails and it's carried over to my 1st post here. I always feel the need to call attention to the point of my sometimes rambling communications.  8)