HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trackables and locals

11-16-2005, 03:31 AM#1
Zandose
Is it possible to run a local triggers for checking is a mouse has moved over a trackable then right some stuff to a global variable to move the camera for only that player?
11-16-2005, 01:42 PM#2
Tim.
Yes, however remember that you cannot move or remove the trackables.
11-16-2005, 11:00 PM#3
Zandose
Quote:
Originally Posted by Tim.
Yes, however remember that you cannot move or remove the trackables.

Thats not a problem. The map is only 32x32 with preplaced trackables to detect where the mouse is.
11-17-2005, 03:50 PM#4
iNfraNe
Quote:
Originally Posted by Tim.
Yes, however remember that you cannot move or remove the trackables.
actually... no.

there is NO way to check which player clicked or touched the trackable. GetTriggeringPlayer doesnt work, and creating triggers for 1 player creates a desync. (Running events for 1 player desyncs 2)
11-17-2005, 09:11 PM#5
Tim.
Quote:
Originally Posted by The JASS Vault
However, there is no way to determine which player triggered the event on a trackable. We can work around this by creating a trackable for each player - each can only be triggered by one player.

This meathod uses GetLocalPlayer() I asumed when he said 'run local triggers' he meant using GetLocalPlayer.
11-18-2005, 09:33 PM#6
iNfraNe
still you cannot do anything usefull with local player and trackables. Everything will desync for obvious reasons
11-18-2005, 11:13 PM#7
Zandose
Quote:
Originally Posted by toot
still you cannot do anything usefull with local player and trackables. Everything will desync for obvious reasons

I read somewherte yesterday that you can use local trackables (to detect which player) on b.net without any problems like desync.
11-19-2005, 12:12 AM#8
The__Prophet
http://www.wc3jass.com/viewtopic.php?t=1997