Jump to content
  • 0

Problema cu verificarea distantei dintre player si obiect


AndrewTG01

Question

Problema intalnita (descriere): Am incercat sa fac la /get mats cand dai pe f sa iei o cutie in mana , dar cand sunt langa cutie nu vrea deloc
Ero(area / rile) / warning-(ul / urile):- 
Liniile de cod / sursa / script-ul(obligatoriu): 

if (PRESSED(KEY_SECONDARY_ATTACK))
	{
		new Float: ObjectX, Float: ObjectY, Float: ObjectZ;
		GetObjectPos(BOX1, ObjectX, ObjectY, ObjectZ);
		if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjectX, ObjectY, ObjectZ)
		{
            SetPlayerAttachedObject(playerid, 0, 2969, 5, 0.003000, 0.103000, 0.208000, -77.300025, 3.100028, 101.199874);
            DestroyDynamicObject(BOX1);
		}
	}


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?:  da

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.