[Include] GetObjectOffset - Get an object's offset to: player, vehicle or object
#1

This include is no longer available. See instead.
Reply
#2

GetDynamicObjectOffset() is using GetObjectPos() instead of GetDynamicObjectPos()
Reply
#3

Fail my mistake. Fixed.
Reply
#4

Good job evan
Reply
#5

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

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

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

Good job, thank you.
Reply
#9

Can anyone reupload it?
Reply
#10

Updated.
- Rewrote entire include.

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

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

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

Reply
#12

Should work fine now.
Reply
#13

Could you perhaps reupload this include?
Reply
#14

up too.
Reply
#15

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

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

Dead link
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)