Question. - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question. (
/showthread.php?tid=232242)
Question. -
Bogdanovic - 27.02.2011
Hello guys,
'exists/can create' a Function for check if a Object touch another Object?
Thanks...
Re: Question. -
Leon_Rahil! - 27.02.2011
You mean: Is there a function to see if there's an object touching another object?
If so, then no, I don't believe that there is such a function.
Re: Question. -
Bogdanovic - 27.02.2011
Yes. So, ok thanks NP.
I have tried to create this function but without a 'scale' of Object is impossible...
Maybe i can try to create a Function how:
pawn Код:
if(ObjectToObject, Rage[ScaleOfObject1],Rage[ScaleOfObject2], Obj1, Obj2)
I do not know... >__<
Re: Question. -
Calgon - 27.02.2011
You can create a function to loop through MAX_OBJECTS and using GetObjectPos to detect how close objects are/might be to each other.
Re: Question. -
Bogdanovic - 27.02.2011
ok Thanks