Object in characters hand
#1

How do I do it so that when someone presses CTRL at 0,0,0 - They get the crouching anim and then something appears in their hand? Object ID 1 for example.

thanks!
Reply
#2

With 0,0,0 you mean at the position 0,0,0? Well, for that it's just to use the GetPlayerPos().
To make them crouch use SetPlayerSpecialAction().
To appear some object in their hand you can use the SetPlayerAttachedObject()

Combine them all together and you should get your wished result.
Links to the wiki for the functions:

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)