Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Problema cu verificarea distantei dintre player si obiect


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

Deci daca ai definit obiectul dynamic, foloseste peste tot dynamic.

GetDynamicObjectPos

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.