SA-MP Forums Archive
[Include] GetObjectOffset - Get an object's offset to: player, vehicle or 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] GetObjectOffset - Get an object's offset to: player, vehicle or object (/showthread.php?tid=541980)



GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 15.10.2014

This include is no longer available. See instead.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Pottus - 15.10.2014

GetDynamicObjectOffset() is using GetObjectPos() instead of GetDynamicObjectPos()


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 15.10.2014

Fail my mistake. Fixed.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - IDarkness - 15.10.2014

Good job evan


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Pottus - 15.10.2014

I have another function you could try get center of several objects.
Which is basically

centerx = (minx + maxx) / 2
centery = (miny + maxy) / 2
centerz = (minz + maxz) / 2


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 16.10.2014

Quote:
Originally Posted by Pottus
View Post
I have another function you could try get center of several objects.
Which is basically

centerx = (minx + maxx) / 2
centery = (miny + maxy) / 2
centerz = (minz + maxz) / 2
For now I've added IsObjectInRangeOfPlayer, I'll see what I can do with this for the next update.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 22.10.2014

Version 1.1.3:
- You can now get an(dynamic)object's offset from a certain point(coordinate). You can do this using GetObjectOffsetfromPoint for non-streamed objects, or GetDynamicObjectfromPoint for streamed(streamer) objects.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Iillminetor1 - 23.10.2014

Good job, thank you.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - taxi0 - 26.12.2014

Can anyone reupload it?


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 26.12.2014

Updated.
- Rewrote entire include.

The new version of this include can be found here:
- Opens in Browser(.inc) -


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - taxi0 - 26.12.2014

Im think you forgot about something because i have problems
Quote:

error 017: undefined symbol "playerid"
error 017: undefined symbol "vehicleid"




Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 26.12.2014

Should work fine now.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Thomas. - 29.05.2016

Could you perhaps reupload this include?


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - OrangeJam - 06.06.2016

up too.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Abagail - 06.06.2016

I'll rewrite it when I have time, I apologize for the inconvenience.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - Unte99 - 06.08.2016

Looking forward for the re-upload. It is very useful.


Re: GetObjectOffset - Get an object's offset to: player, vehicle or object - StRaphael - 05.11.2018

Dead link