SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/07/2014, 07:54 PM   #1
Eloctro
Big Clucker
 
Eloctro's Avatar
 
Join Date: Jan 2011
Posts: 54
Reputation: 15
Default Forklift fork

good evening,
Looking for a solution to find the height of the Forklift fork.
Thanks.
Eloctro is offline   Reply With Quote
Old 06/07/2014, 07:56 PM   #2
AMouldyLemon
Huge Clucker
 
Join Date: Dec 2013
Posts: 218
Reputation: 3
Default Re: Forklift fork

The height?
AMouldyLemon is offline   Reply With Quote
Old 06/07/2014, 07:57 PM   #3
Eloctro
Big Clucker
 
Eloctro's Avatar
 
Join Date: Jan 2011
Posts: 54
Reputation: 15
Default Re : Forklift fork

Yes, when you press "8" ou "2" the fork up and down. And i want to know the position of the fork
Eloctro is offline   Reply With Quote
Old 06/07/2014, 09:38 PM   #4
S4t3K
Gangsta
 
S4t3K's Avatar
 
Join Date: Jan 2013
Posts: 864
Reputation: 165
Default Re : Forklift fork

The best way is to create an object InGame at your position.

Then use EditObject to put the object on the fork.
Finally, use AttachObjectToVehicle.

Now, when you'll want to get the fork position, simply get the object position instead.
And if you want it as an offset, simply deduct the object position from the player/vehicle position (basically, the center of the vehicle I think).
__________________
S4t3K is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forklift! TheEpicBraxton Scripting Help 4 25/01/2013 01:15 AM
How to load a forklift ? ZackBoolaro Scripting Help 6 25/12/2012 09:08 PM
Why if I move a box with a Forklift I can't get the new position of the object? CTCCoco Help Archive 1 26/07/2011 02:04 PM


All times are GMT. The time now is 02:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.