SA-MP Forums Archive
Pet on shoulder system - 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: Pet on shoulder system (/showthread.php?tid=641293)



Pet on shoulder system - Genjii1337 - 13.09.2017

Hello everyone, i want a system that allow admins to put a pet on their shoulder with a command.
The pets would be a Shark and turtle.
I know i could make this with SetPlayerAttachedObject or how its called, but i don't know how to shrink the size of the shark/turtle (they are objects).

~~Any sugestion is very apreciated!


Re: Pet on shoulder system - Threshold - 14.09.2017

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

'fScaleX', 'fScaleY' and 'fScaleZ' are the parameters that control the size of the object. You can use those parameters to determine the pet's size.


Re: Pet on shoulder system - Genjii1337 - 14.09.2017

Quote:
Originally Posted by Threshold
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

'fScaleX', 'fScaleY' and 'fScaleZ' are the parameters that control the size of the object. You can use those parameters to determine the pet's size.
And should i make them equal? Like 'fScaleX' = 10, 'fScaleY' = 10, 'fScaleZ' = 10?


Re: Pet on shoulder system - cuber - 14.09.2017

Removed. Coords of another object.. sorry


Re: Pet on shoulder system - Deadpoop - 14.09.2017

i think X should be + or - depends on shoulder 0.90
and Z should be +1.40 depends on the skins since not all skins are the same height