![]() |
destroy();
Ive made a target system, but the targets keep responing, making the targets not disapear and reapear x.x
i need it to destroy every time a player enters and then recreate one. this is my script: PHP Code:
|
this.destroy()?
|
Quote:
|
try thiso. to access the object,
|
Quote:
|
umm, i need a script like
function onPlayerEnters(){ destroy(): sleep(.1); onCreated(); } but that wont work x.x |
O.o that won't work. You can't call a function in a script that isn't there.
Instead of destroying it, set some kind of check to see if it is active or not(inactive on creation, active when told to be). |
Just do something like:
NPC Code: When you call destroy, it IMMEDIATELY stops the script (like return). |
Quote:
temp.n = putnpc2(x,y,""); n.join("whatever"); |
Quote:
n.join() - n scopes to the dropped npc, so it makes the dropped npc at x,y join a the class "whatever" |
Quote:
|
Quote:
|
Quote:
|
theHAWKER, perhaps you should stop for a second, take a deep breath and ask yourself the question:
Am I in over my head? |
Quote:
|
| All times are GMT +2. The time now is 01:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.