playMaker

Author Topic: How to do Get Property?  (Read 1947 times)

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
How to do Get Property?
« on: June 12, 2013, 04:58:20 PM »
Hey, I need to know how to get the property number in a C# script.

Code: [Select]
public enum CharacterState {

WALKING =  10,

(not the full code btw) The Walking integer is the one I'm trying to get. Any help?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to do Get Property?
« Reply #1 on: June 14, 2013, 01:37:35 AM »
Hi,

 Enum are not supported yet by playMaker, so you need to create a special custom action for it.

 If you look at the Photon network demo, I created special actions to control the character state, you should use it as a template, if you have problems with implementing it, let me know.



bye,

 Jean