Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: evilpikmin on July 08, 2019, 10:49:28 AM

Title: Mouse Pick Event with RIGHT mouse button
Post by: evilpikmin on July 08, 2019, 10:49:28 AM
Is it possible to use the Mouse Pick Event action with the 'right' mouse button? I cant see an obvious way to do it but as always I am open to the prospect of user error...
Title: Re: Mouse Pick Event with RIGHT mouse button
Post by: TheNecron on July 08, 2019, 06:13:47 PM
The mouse pick event raycasts from your cursor. it's separate from the trigger event to transition, just make the condition to transition Get Mouse Button (with Right in the Button field instead of Left)
Title: Re: Mouse Pick Event with RIGHT mouse button
Post by: evilpikmin on July 09, 2019, 03:53:23 AM
Mouse Pick Event doesn't have a a drop down to select which mouse button to use. I want to right click an object and fire off an event. I can use GetMouseButton to detect the right mouse button but can I raycast from the mouse some other way?
all help appreciated!
Title: Re: Mouse Pick Event with RIGHT mouse button
Post by: djaydino on July 11, 2019, 08:31:15 AM
Hi.
I believe that there is a 'Mouse Pick Event 2' on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) that uses a button ID.
Maybe that works :)