SA-MP Forums Archive
how to pickup dynamicobject? - 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: how to pickup dynamicobject? (/showthread.php?tid=653017)



how to pickup dynamicobject? - RedFall - 24.04.2018

am making script using streamer for objects
createdynamic object christmas box, and pick it up (attach in one hand) then you need to bring the box in dragon casino with a marker there and drop it

but how to pickup dynamic object? sorry new here
I tried searching but can't find what i was looking for maybe a little help here


Re: how to pickup dynamicobject? - UFF - 24.04.2018

Check this

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

Your Object id in model!


Re: how to pickup dynamicobject? - RedFall - 24.04.2018

yes it works, but when you walk through, it disappears
cannot carry it or put in one hand



Re: how to pickup dynamicobject? - ItsRobinson - 24.04.2018

Make a check to see if the player is within distance of the present, using GetPlayerDistanceFromPoint

If you want it to disappear, when that check returns true, just delete the object, if you want to make the player carry it, set the player to use the carrying animation and then attach the object to the player using AttachObjectToPlayer

Give it a go, if you get stuck, show us what you tried and ask for some help.


Re: how to pickup dynamicobject? - RedFall - 24.04.2018

@ItsRobinson and @UFF, thank you
let me do some experiments


Re: how to pickup dynamicobject? - RedFall - 21.05.2018

got it working, I have a command for creating dynamic objects
player can carry the object, and drop also but how to make facing angle to dynamic object on the ground?