CreateObject on command -
Shredmaster - 17.08.2012
Hey.
I have 2 questions about scripting.
Today I was making a command that spawns different objects.
I am spawning it like this:
Код:
barrier=CreateDynamicObject(979, x, y, z-0.5, 0.000000, 0.000000, angle);
And destroying it like this:
Код:
DestroyDynamicObject(barrier);
But object won't disappear. Where did I go wrong?
And, I wanna know if there is any function like
SetPlayerPosFindZ but for objects because my objects spawn a little higher than the ground.
Re: CreateObject on command -
Shredmaster - 17.08.2012
Bump.
Sorry for that, but my topic is on the second page and nobody answered.
Re: CreateObject on command -
Avi57 - 17.08.2012
only DestroyObject not DestroyDynamicObject
Re: CreateObject on command -
Shredmaster - 17.08.2012
Quote:
Originally Posted by Avi57
only DestroyObject not DestroyDynamicObject
|
Hmm.
https://sampforum.blast.hk/showthread.php?tid=102865/
Here it says:
Код:
native DestroyDynamicObject(objectid);
Re: CreateObject on command -
RanSEE - 17.08.2012
It is a streamer plugin issue, as far i remember.
Quote:
It doesn't always happen. It's a very strange bug that seems to randomly decide whether it wants to destroy the object or not.
|
__
it since it's not defined under the variable anymore. Some times if you leave the streaming distance then return the object will be gone then.
Re: CreateObject on command -
Shredmaster - 17.08.2012
So, should I use CreateObject and DestroyObject then?
Re: CreateObject on command -
Avi57 - 17.08.2012
then use it !
so why your asking everyone if you know about it !
Re: CreateObject on command -
Shredmaster - 17.08.2012
CreateObject and DestroyObject still doesn't work...
Re: CreateObject on command -
Shredmaster - 17.08.2012
Help?
I tried CreateObject and DestroyObject, still doesn't work.
I also put SendClientMessage after DestroyObject to make sure everything is running as it should.
Message printed on my screen, but object didn't disappear.
Re: CreateObject on command -
Shredmaster - 19.08.2012
Help anybody?