Posts: 293
Threads: 35
Joined: Jan 2010
Reputation:
0
You mean boxes that the truck can hit and push etc.? In that case, impossible.
Posts: 364
Threads: 51
Joined: Aug 2009
Reputation:
0
I guess he means that the truck gets loaded with boxes/rocks.
Posts: 293
Threads: 35
Joined: Jan 2010
Reputation:
0
Oh, sorry.
I guess you can make a timer to update the position of the object... but this is gonna be a lot of work, so I suggest you do something else.
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Oh i know what he wants... he wants for example a flatbed (empty one) and a command to make boxes go on the flatbed and that he will be able to drive with them... nearly impossible.. you have to make a timer indeed, which updates every (0,05)? seconds. and put the boxes in same pos
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Doesnt AttachObjectToPlayer work, too?
Create the objects first, calculate their pos relative to the trucks pos (will need some knowledge of math and some tests to get the right offsets). When a player enters the truck, attach the objects to him (you will need to change the object offsets a bit, to make them fit to the palyers' pos instead of the vehicles')
If the player leaves the vehicle, detach the objects (destroy and recreate them with the offsets you used on first creation)
All in all, thats quite a lot of work, maybe something for a inlcude scripter with some time. But it will work smooth, if done accurate, and without using ugly looking and laggy timers.