Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: pXd on June 03, 2016, 10:15:45 PM

Title: [SOLVED]Basic GetDistance & Float compare not working.
Post by: pXd on June 03, 2016, 10:15:45 PM
Stange, seems to work sometimes and sometimes not. This is just a test setup with all Float compare events enabled. Float meets requirements but nothing sends unfortunately.

Any help much appreciated.

Cheers

Title: Re: Basic GetDistance & Float compare not working.
Post by: Alex Chouls on June 04, 2016, 12:24:26 AM
I wouldn't use the FINISHED event in those actions. FINISHED has a very specific meaning; it is sent when all actions on the state have finished running.

Try making a new event for the test e.g. Passed.



Title: Re: Basic GetDistance & Float compare not working.
Post by: pXd on June 04, 2016, 01:10:56 AM
I wouldn't use the FINISHED event in those actions. FINISHED has a very specific meaning; it is sent when all actions on the state have finished running.

Try making a new event for the test e.g. Passed.

Thanks Alex, that makes sense. Cheers.
Title: Re: Basic GetDistance & Float compare not working.
Post by: pXd on June 04, 2016, 01:32:54 AM
I wouldn't use the FINISHED event in those actions. FINISHED has a very specific meaning; it is sent when all actions on the state have finished running.

Try making a new event for the test e.g. Passed.

Still no dice actually, just tested it. Anything else it could be? As all others work fine.
Title: Re: Basic GetDistance & Float compare not working.
Post by: pXd on June 04, 2016, 01:52:29 AM
I wouldn't use the FINISHED event in those actions. FINISHED has a very specific meaning; it is sent when all actions on the state have finished running.

Try making a new event for the test e.g. Passed.

Not sure if this helps.
Title: Re: Basic GetDistance & Float compare not working.
Post by: pXd on June 04, 2016, 08:12:20 AM
I rebuilt the FSM and it works now. Not sure why, could be a bug. I have been having some strange results with get distance to game object.
Title: Re: [SOLVED]Basic GetDistance & Float compare not working.
Post by: Alex Chouls on June 04, 2016, 11:08:19 AM
What version of Playmaker/Unity are you using?
Title: Re: [SOLVED]Basic GetDistance & Float compare not working.
Post by: pXd on June 05, 2016, 03:02:03 AM
Playmaker 1.8.0.f43 Unity 5.4.0b14