how to pickup dynamicobject?
#1

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
Reply
#2

Check this

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

Your Object id in model!
Reply
#3

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

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.
Reply
#5

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

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)