Check if object is facing another
#1

Is there any function for that? For example: I want to check if the light (obj id 1893) is above (or "gives light" to) some other object, let's say a table(obj id 1433).
Reply
#2

No I dont think you can but you could try checking if the light is a valid object (IsValidObject) and then do the rest of your code.
https://sampwiki.blast.hk/wiki/IsValidObject
And maybe you can try to get the pos of the object and see if its near the other object.

Hope you can work it out! Good luck !
Reply
#3

https://sampwiki.blast.hk/wiki/GetObjectRot
Reply
#4

hmm, okay. didn't think about that. thanks konstantinos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)