Is this possible
#7

Well I wasn't actually talking about the cannons, but certain attacks :P, but about that piece of code.
You are doing IsPlayerInRangeOfPoint and use the coordinates or tx, ty and tz. I suppose those are the targetcoordinats. But you are making a mistake over here. You are checking whether a player is near the objectcoordinates. So you should use x, y and z instead.

Edit: this if statement shouldn't be closed like: if(..........; like you did.
the right way: if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))

Edit 2: I also see you forgot to add the range.
Reply


Messages In This Thread
Is this possible - by Rudy_ - 28.07.2012, 14:27
Re: Is this possible - by Dolby - 28.07.2012, 14:56
Re: Is this possible - by Rudy_ - 28.07.2012, 15:25
Re: Is this possible - by Rudy_ - 28.07.2012, 15:30
Re: Is this possible - by Baboon - 28.07.2012, 15:32
Re: Is this possible - by Rudy_ - 28.07.2012, 15:35
Re: Is this possible - by Baboon - 28.07.2012, 15:39
Re: Is this possible - by Rudy_ - 28.07.2012, 15:41
Re: Is this possible - by Baboon - 28.07.2012, 16:03
Re: Is this possible - by FireCat - 28.07.2012, 16:06

Forum Jump:


Users browsing this thread: 2 Guest(s)