playMaker

Author Topic: solvedhow to go about getting a component that spawns on the player at run time?  (Read 2459 times)

invayne

  • Full Member
  • ***
  • Posts: 105
so im working on a ork framework playmaker integration and im having a little trouble getting components that spawn at run time. and im not quite under standing the get component action either on how that works exactly. 


edit: this is one of the scripts thats not out side the dll so not sure if this could cause an issue but there is calls i can do to get these components but i need to get in to access the player variables

also i get this error

ArgumentException: GetComponent requires that the requested component 'Object' derives from MonoBehaviour or Component or is an interface.
HutongGames.PlayMaker.Actions.GetComponent.DoGetComponent () (at Assets/PlayMaker/Actions/GetComponent.cs:57)
HutongGames.PlayMaker.Actions.GetComponent.OnUpdate () (at Assets/PlayMaker/Actions/GetComponent.cs:40)
HutongGames.PlayMaker.FsmState.OnUpdate ()
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.Update ()
PlayMakerFSM.Update ()
« Last Edit: February 19, 2015, 03:24:33 PM by invayne »

invayne

  • Full Member
  • ***
  • Posts: 105
Re: how to go about getting a component that spawns on the player at run time?
« Reply #1 on: February 19, 2015, 03:24:04 PM »
never mind im just a retard and dont read  the notes ....