Detaching object
#1

Hello guys,

I was making movable stretcher for my scratch RP gamemode but ended up with a problem which I cant solve, I attached stretcher to a player with using CreateObject and AttachObjectToPlayer, everything is alright but I cant find a way to detach it, do you guys know any function for doing such things ?

P.S.: I tried RemovePlayerAttachedObject(playerid,sedye[playerid]); but didnt actually work.

edit:decided destroying object and re-creating it, it works, can be locked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)