playMaker

Author Topic: accessing fsm variables from c# ...someone elses class  (Read 1927 times)

wiseman_2

  • Playmaker Newbie
  • *
  • Posts: 4
accessing fsm variables from c# ...someone elses class
« on: December 13, 2012, 04:41:39 AM »
ok... ive been stuck on this for about 2 hours....

I'm not the greatest at c# , but I've been writing my own custom actions for a while with no problem, and have worked with several other similar languages, so i'm not totally lost.

but the one thing that is driving me nuts is that I'm trying to integrate ultimate fps camera into one of my projects, and i need to pass a variable from one of their classes(attached to a weapon) , to an fsm that i have attached to an empty-object...

i just need the basics, as far as what's required...

thanks ... great work here...p.s. ( if i had one request from you guys for this forum it would be a c# class examples section to go along with all of the .js script integration and custom action examples)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: accessing fsm variables from c# ...someone elses class
« Reply #1 on: December 13, 2012, 08:21:20 AM »
Hi,

 To pass a variable from a script to a fsm, you can do this using this technic:

http://hutonggames.com/playmakerforum/index.php?topic=2429.msg10849#msg10849

if that doesn't help, can you be more precise about the type of error or result you get?

bye,

 Jean