View Single Post
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 02-26-2018 , 10:22   Re: How can Detect distance
Reply With Quote #5

How can do that?

Becouse the entity origin is here : entity_set_origin( Entity, Float:{ 1066.52, -1025.00, -551.00 } );

I tried this but not working

Code:
new const Float:Origin[][2] = 
{
    { 1066.52, -1025.00, -551.00 }
}

fDistance = get_distance_f( Origin , PlayerOrigin )
entity_set_origin( Entity, Origin );

Last edited by Saint Sinner; 02-26-2018 at 10:40.
Saint Sinner is offline