Author Topic: Event: On look at  (Read 1078 times)

I am working on a SWAT game but i need someone to make this event, if this is possible, can someone do this?

Wat.

Problems:
1. Not possible
2. Would be highly abused
3. Wat
4. Not possible

That would be an amazing event though, if it could be controlled.

oh it's possible, but the sheer amount of processing power required to compute where every player on your server is looking...
dear god

I don't think it'll take that much processing power

I was thinking about this when I was playing halo 1, at the beginning you look at certain nodes and they light up. This would have some real interesting potential. For an abstract example, drawing =D

I don't think it'll take that much processing power
firring raycasts approximately every ten milliseconds?
NAH, WONT TAKE MUCH.


firring raycasts approximately every ten milliseconds?

It's impossible to fire every 10 milliseconds, the lower limit is 16.
Also, it doesn't have to update that often. Maybe every 200 milliseconds.

I have seen something that is not exactly what you search for but might prove useful to accomplish what you want to do.

EDIT:
Got it, here take this.
If you use something like zone events and zone bricks you can let it shoot a relay from a player in a certain zone.
Then event the brick that has to be looked at to do something onRelay and tadaa!
« Last Edit: April 10, 2012, 08:32:27 AM by lordician »

I have seen something that is not exactly what you search for but might prove useful to accomplish what you want to do.

EDIT:
Got it, here take this.
If you use something like zone events and zone bricks you can let it shoot a relay from a player in a certain zone.
Then event the brick that has to be looked at to do something onRelay and tadaa!
Can someone explain to me how to use this?

Edit: And ways I could use it?
« Last Edit: April 14, 2012, 10:23:53 PM by iBlox / (-Nick-) »

Enable add-on.
Put zone brick (don't forget to get those and enable those) near the brick you want to do something when looked at.
Event it like:
Code: [Select]
OnInZone - Player - castRelay[(number of bricks between the zone brick and the brick to be looked at (aprox))]
Then event the brick they will have to look at:
Code: [Select]
onRelay - dosomething
Let the brick do something onRelay and you will be fine.

>onPlayerlook >Player >Kill

There is already similar things so in job servers, you can look at property and see the owner. Although making it an event could be problematic as any event might be.

This has been done before with Xalos's Murder Mystery where if you look at a player it will give you his status.

So it is possible.

>onPlayerlook >Player >Kill

No.

Give the event a distance limit. You have to be a certain distance near it for it to work.

This way, its no different than onPlayTouch > Kill.