Author Topic: onLookedAt  (Read 670 times)

An event for when the player's crosshairs line up on the brick with the onLookedAt event.

If it's not possible then ok but if it is it'd be cool if it was done.

It would be quite hacky and perhaps difficult to balance event performance and server performance.

Having it update really fast would make it work often when quickly looking around at bricks, however, may impair the server's performance especially with a greater number of players.

It would be quite hacky and perhaps difficult to balance event performance and server performance.

Having it update really fast would make it work often when quickly looking around at bricks, however, may impair the server's performance especially with a greater number of players.

My thoughts exactly.

There was one event that fired a raycast from the player to trigger a relay on the brick that was hit, you could use that with onInZone or onPlayerTouch for a similar effect that wouldn't be constantly checking while it wasn't needed. If you really needed it to be always checking, you could set a relay.

Edit: Here we go
« Last Edit: July 29, 2011, 12:49:45 AM by Eksi »

onPlayerTouch would only make it work for one player at a time.

onPlayerTouch would only make it work for one player at a time.
True. Now I remember, that's why I changed it to onInZone. I was making those things that glow when you mouse over them in the mechanical age of Myst, except that in blockoMyst they glow when you walk up and look at them. It's been a long time since I worked on that.