DetachObjcetFromPlayer
#11

Quote:
Originally Posted by Godey
View Post
DrawDistance is optional, try without it:
Code:
StretcherObj[playerid] = CreateObject(2146, X, Y, Z, RX, RY, RZ);
If this doesn't work instead of GetObjectPos, try GetPlayerPos..
First time it spawned above me, Then I changed the X and Z offset to match the AttachObjectToPlayer
Code
PHP Code:
GetPlayerPos(playeridXYZ);
         
GetObjectRot(StretcherObj[playerid], RXRYRZ);
        
DestroyObject(StretcherObj[playerid]);
        
-= 1.00-= 0.50;
        
StretcherObj[playerid] = CreateObject(2146XYZRXRYRZ100.0); 
But the stretcher spawns behind me (without rotation), How can I store the rotation ?
Reply


Messages In This Thread
DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 00:19
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 05:37
Re: DetachObjcetFromPlayer - by Godey - 13.04.2016, 10:12
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 12:25
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 12:51
Re: DetachObjcetFromPlayer - by Godey - 13.04.2016, 12:54
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 13:13
Re: DetachObjcetFromPlayer - by Godey - 13.04.2016, 13:22
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 14:14
Re: DetachObjcetFromPlayer - by Godey - 13.04.2016, 14:24
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 14:45
Re: DetachObjcetFromPlayer - by Godey - 13.04.2016, 14:50
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 14:56
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 17:40
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 18:41
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 18:46
Re: DetachObjcetFromPlayer - by NeXoR - 13.04.2016, 19:00
Re: DetachObjcetFromPlayer - by Sew_Sumi - 13.04.2016, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)