CreateDynamicPickup
#1

Hey guys! I basically want to 'decrease' teh radius of my Dynamic Pickup, so you have to be closer to see it. How do I do it? The line is:

Код:
public LoadHousesVisual(houseid)
{
	if(hInfo[houseid][Owned] == 0)
	{
		hInfo[houseid][hPickup] = CreateDynamicPickup(1273, 1, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ]);
	}
	else if(hInfo[houseid][Owned] == 1)
	{
  	 	hInfo[houseid][hPickup] = CreateDynamicPickup(1272, 1, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ]);
	}
    hInfo[houseid][hIcon2] = CreateDynamicPickup(1239, 1, hInfo[houseid][LX], hInfo[houseid][LY], hInfo[houseid][LZ]);
    Create3DTextLabel(""COL_WHITE"Type "COL_ORANGE"/enter "COL_WHITE"to enter the house!", COLOR_WHITE, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ], 40, 0, 0);
	return 1;
}
I want the "TYPE "COL_ORANGE"/enter "COL_WHITE"to enter the house!" to appear when you're closer to it.
Reply
#2

Use "IsPlayerInRangeOfPoint"!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)