get_user_aiming
- Синтаксис
-
native Float:get_user_aiming(index, &id, &body, dist = 9999);
Переменная | Описание |
---|---|
index |
Client index to trace aim from |
id |
Variable to store hit client index (if applicable) |
body |
Variable to store hit client body part (if applicable) |
dist |
Maximum distance of the trace |
- Описание
- Traces the client's current aim vector to see if it hits something.
- Пометка
-
If the trace does not hit a client, id and body will be set to 0.
- Пометка
-
If the trace hits nothing within the specified distance, 0 is returned.
- Возвращает
- Distance between the trace start and end point