Why if I move a box with a Forklift I can't get the new position of the object? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why if I move a box with a Forklift I can't get the new position of the object? (
/showthread.php?tid=271894)
Why if I move a box with a Forklift I can\'t get the new position of the object? -
CTCCoco - 26.07.2011
Why if I move a box with a Forklift I can\'t get the new position of the object?
I mean, if I move the object with the Fortklift, or with my body, the position is still the same.
And that\'s more, when I am holding the box with the Fortklift, I can\'t move it with SetObjectPos, but I can when I drop it on the ground.
So... It\'s impossible to do something like the official GTA:SA mission?
[ame]http://www.youtube.com/watch?v=qEoIj0Oy9uU[/ame]
Thanks for all.
Re: Why if I move a box with a Forklift I can\'t get the new position of the object? -
AndreT - 26.07.2011
It is very well possible to make missions like that. But instead of using GTA:SA default hooking for the forklift, you\'ll probably need to code your own attach function using SetObjectPos and SetObjectRot.