How to convert this?
#2

Will this work?

PHP код:
 private bool IsPlayerInRangeOfPoint(Player plfloat radiusfloat Xfloat Yfloat Z)
        {
            
float pxpypz;
            
px pl.Pos.X;
            
py pl.Pos.Y;
            
pz pl.Pos.Z;
            
float dist = (((px X) * (px X)) + ((py Y) * (py Y)) + ((pz Z) * (pz Z)));
            
float radi radius radius;
            if (
dist >= radi)
            {
                return 
true;
            }
            else
            {
                return 
false;
            }
        } 
Reply


Messages In This Thread
How to convert this? - by T0pAz - 11.12.2011, 16:01
Re: How to convert this? - by T0pAz - 11.12.2011, 16:36
Re: How to convert this? - by T0pAz - 11.12.2011, 18:19
Re: How to convert this? - by Iain.Gilbert - 11.12.2011, 22:56
Re: How to convert this? - by T0pAz - 12.12.2011, 05:02
Re: How to convert this? - by T0pAz - 12.12.2011, 13:21
Re: How to convert this? - by Iain.Gilbert - 12.12.2011, 14:52
Re: How to convert this? - by T0pAz - 12.12.2011, 15:13
Re: How to convert this? - by Iain.Gilbert - 13.12.2011, 08:44
Re: How to convert this? - by T0pAz - 13.12.2011, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)