Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: invayne on February 19, 2015, 03:12:05 PM

Title: solvedhow to go about getting a component that spawns on the player at run time?
Post by: invayne on February 19, 2015, 03:12:05 PM
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 ()
Title: Re: how to go about getting a component that spawns on the player at run time?
Post by: invayne on February 19, 2015, 03:24:04 PM
never mind im just a retard and dont read  the notes ....