Community Forum

mouseEvent don`t work

Forum Overview >> Scripting

Created07.08.2016 11:54

Kirill Teltevskoy (Atrides) 07.08.2016 11:55
Hi. I have lua script, which create trigger for player. But in this script don`t work callback mouseEvent. What is a problem?

Gunnar Lesser (Unknown) 21.11.2016 10:24
Maybe some more Informations about your script ?

D. Ecker (Decker_MMIV) 21.11.2016 17:04
A "trigger" (registered collision-box) won't/shouldn't make a callback to the mouseEvent() method.

mouseEvent() is only called when the game-engine "sees" some change occurring of the mouse buttons/axes.

And as Gunnar Lesser asks, perhaps you should show some of your LUA script, so we can understand what it is you are trying to do.

/edit - Doh! OP was several months ago, so most likely not relevant anymore.

Note: Log in to post. Create a new account here.