DetachObjcetFromPlayer
#9

Quote:
Originally Posted by Godey
View Post
Well in that case, your right..
-> Create object
-> Attach to Player
-> Delete object ( Before deleting, GetObjectPos & GetObjectRot )
-> Create new object ( Use coords & rotation which have stored use those 2 functions)

Thank you for being so observant
Quote:
Originally Posted by Sew_Sumi
View Post
Wants it to detatch...


As in walk somewhere with it attached, then when he "detaches" for the object to stay there...



C'mon... You've been doing so well in answering all those threads (I been seeing) then this?


Make a function, doing what I said... GetObjectPos GetObjectRot, then DeleteObject, and CreateObject. Just so it appears to stay in the same spot. Could do CreateObject then DeleteObject so it visually doesn't glitch.
Well, It returns to the spawn position
Pics:




Code:
PHP Code:
else if(!strcmp(params"stop"true))
    {
        new 
Float:XFloat:YFloat:ZFloat:RXFloat:RYFloat:RZ;
        if(!
UsingStretcher[playerid]) return SendClientMessage(playeridCOLOR_GREY"You are not using any stretcher.");
        if(!
MovingStretcher[playerid]) return SendClientMessage(playeridCOLOR_GREY"You are not moving your stretcher.");
        
MovingStretcher[playerid] = 0;
         
GetObjectPos(StretcherObj[playerid], XYZ);
         
GetObjectRot(StretcherObj[playerid], RXRYRZ);
        
DestroyObject(StretcherObj[playerid]);
        
StretcherObj[playerid] = CreateObject(2146XYZRXRYRZ100.0);
        
SendClientMessage(playeridCOLOR_LIGHTRED"You have stopped moving your stretcher.");
        return 
1;
    } 
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)