07.06.2014, 12:46
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.
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.