SA-MP Forums Archive
Help plz +REP - 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: Help plz +REP (/showthread.php?tid=551469)



Help plz +REP - Ryz - 19.12.2014

Hello

I want to use AttachObjectToObject for my small project but

I want to know how to attach this object with weapon objects? i mean grenade and smoke grenade object? also he move with weapon object?


Re: Help plz +REP - Threshold - 19.12.2014

What exactly are you trying to do? Attach a weapon to a player?


Re: Help plz +REP - Ryz - 19.12.2014

No i want to attach an object with weapon object like

player holding grenade...

i want to attach my object with grenade object


Re: Help plz +REP - Sawalha - 19.12.2014

I think that doesn't need AttachObjectToObject. be cause the grenade which the player is holding is a weapon , not an object.

Use SetPlayerAttachedObject, and put the bone ID 6 , Right hand, which the player uses usually the weapon to hold.

https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject


Re: Help plz +REP - Ryz - 19.12.2014

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
grenade which the player is holding is a weapon , not an object.
Totally worth then!! i wanted to attach small object with weapon object(grenade) to get perfect object position when he touch surface(ground [z] pos) any way its possible?


Re: Help plz +REP - Ryz - 20.12.2014

anyone plz?