09.12.2013, 10:05
In Argonath for example they have a textdraw at the fire and they have a function to check if the textdraw is located in the middle of the screen, meaning if the water is being sprayed directly on the source.
I don't think you need to go all math on this one since there's got to be a way to do it more easily.
You might as well try IsPlayerLookingAtPoint function?
You need this include for that though.
I don't think you need to go all math on this one since there's got to be a way to do it more easily.
You might as well try IsPlayerLookingAtPoint function?
Код:
IsPlayerLookingAtPoint(playerid,Float:X,Float:Y,Float:Z,Float:ViewWidth,Float:ViewHeight)