SetPlayerAttachedObject - 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)
+--- Thread: SetPlayerAttachedObject (
/showthread.php?tid=378355)
SetPlayerAttachedObject -
Audiophr3ak - 17.09.2012
Is there any effecient method to attach objects to different skins without storing original skins coordinates (for example hats, glasses, masks, watches etc)? There is a native function for vehicles, which can detect height etc (GetVehicleModelInfo), would be nice to make something like this for skins.
Re: SetPlayerAttachedObject -
TaLhA XIV - 17.09.2012
You can check that what a player skin is and attach player object according to it,and this is the only way you can attach objects to a player in my opinion.
Re: SetPlayerAttachedObject -
Audiophr3ak - 17.09.2012
IKR, but it will require a big array containing objects IDs and their coordinates for each skin. Thats pretty huge system, but seems like it's the only one way out.