GetObjectPos
#1

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

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);
Reply
#3

solved thanks +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)