Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: IsolatedPurity on March 21, 2019, 06:53:31 PM

Title: Mouse Pick Event Over not seeing object sometimes
Post by: IsolatedPurity on March 21, 2019, 06:53:31 PM
So unless I find the "perfect spot" for a mouse over even it never sees it. The FSM is on my "player" which a "tagged Main Camera" is attached to. The object is in the correct layer as well.
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: djaydino on March 21, 2019, 06:58:40 PM
Hi,
Maybe the ray distance is to short (5)?
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: Athin on March 21, 2019, 08:32:57 PM
Hey there,

If I'm looking at it right, you have that inverted mask checked off.  That will make it ignore anything with that layer on it.

 
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: IsolatedPurity on March 22, 2019, 12:46:37 PM
I've tried setting the raycast high and low and still nothing. I've also tried the invert mask button
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: djaydino on March 22, 2019, 01:56:44 PM
Hi.
on element 0 i can see the variable "ItemInteraction"

does it has the value "ItemInteraction" inside it?

on the bottom of the state window (inside the playmaker editor window)

there is a checkbox called debug.

Enable this to see directly on the action, whats inside the variables.
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: IsolatedPurity on March 23, 2019, 11:18:08 AM
Thank you for the help djaydino.

I decided to redo the FSM and put a new one on my intractable item and it works this way.

I do have another  question, is there a way to make Set Property so I do not have to keep modifying it for each individual item?
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: djaydino on March 24, 2019, 12:11:16 AM
Hi.
I don't think so.

What component are you targeting with the Set Property  action?

is it from an asset?

Maybe i can make an action for it.
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: IsolatedPurity on March 26, 2019, 09:31:26 AM
It is a public property(bool) that is a part of a "outline" effect script. Unfortunately I've discovered this technique will not work with objects that have a material... The fsm does what it is supposed to do and the public bool is toggled but the effect remains.

/sigh
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: djaydino on March 26, 2019, 12:33:03 PM
Hi.
Is the script from an asset on the asset store?
Title: Re: Mouse Pick Event Over not seeing object sometimes
Post by: IsolatedPurity on March 26, 2019, 12:53:14 PM
It's a free script someone made