GetObjectPos - 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)
+--- Thread: GetObjectPos (
/showthread.php?tid=411162)
GetObjectPos -
megamind2067 - 27.01.2013
How do I use GetObjectPos. For example if the object is at 0, 0, 0 DestroyObject.
Can someone please help. and yes i did ****** it
Re: GetObjectPos -
Babul - 27.01.2013
have a look @
https://sampwiki.blast.hk/wiki/GetObjectPos
destroying an object requires its ID (returned from creating it), like here:
Code:
//top part of your script where the other initialisation stuff is
new Object;
//creating the object, lets use the ramp 1665 here, will be stored in the Object variable created above
//needs to be in a function/callback/command
Object=CreateObject(1665,0,0,5,0,0,0,150);//ramp at blueberry
now its possible to destroy the object, which ID is stored in the (global) variable Object:
Code:
DestroyObject(Object);
Re: GetObjectPos -
megamind2067 - 27.01.2013
solved thanks +REP