LOCATE CHAR ON FOOT 3D
Jump to navigation
Jump to search
Number of parameters: 8 | ||
---|---|---|
Parameter # | Type | Description |
1. | Handle | Ped Handle |
2. | float | x coordinate |
3. | float | y coordinate |
4. | float | z coordinate |
5. | float | base width/lenght |
6. | float | base width/lenght |
7. | float | height |
8. | bool | is marker visble? |
Return value: | ||
Type | Description | |
bool | Returns true if the ped is within the specified space |
Description
This function constantly checks if a characther is whitin the specified space. If the last parameter is set to true (1) it draws a mission marker.
Example
/*This function must be in a loop and the parameter inside Wait(...) must be 0.
If it isn't 0 the marker will flicker*/
while(IsThreadAlive())
{
if(LocateCharOnFoot3D(niko, x, y, 15.0f, 0.7f, 0.7f, 0.7f, 1))
{
//Do something
}
Wait(0);
}