SA-MP Forums Archive
Object unattaching - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Object unattaching (/showthread.php?tid=267044)



Object unattaching - Dudits - 07.07.2011

Well I couldn't find a way around to make an object stay at its position after being attached to a player, will need some help my brain is fried xD


Re: Object unattaching - SmileyForCheat - 07.07.2011

You Mean Like This??
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerAttachedObject(playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );



Re: Object unattaching - Dudits - 07.07.2011

Nope, using AttachObjectToPlayer.

Is there a way to unattach it and keep it at it's current position?


Re: Object unattaching - Wesley221 - 07.07.2011

I think you need to destroy the item, and then create it back with the command (or whatever you use)