![]() |
"/clearnpcs" from Script
Is it possible to clear all the npcs in the level with a script in the same way you would with "/clearnpcs *.nw" in RC? For example let's put this script on an npc:
PHP Code:
|
PHP Code:
|
would
PHP Code:
|
This destroys the npcs, I meant like getting rid of them if they are already destoryed. I had an npc create a bunch of class npcs for a while that destored themselves after a few seconds and eventually it stopped creating them. When I typed "/clearnpcs osl.nw," then more class npcs started coming off of the original npc.
|
Quote:
|
And salesman, I tried that too, it didn't work:
PHP Code:
|
Here is the emitter:
PHP Code:
PHP Code:
|
The problem is that you need to destroy your dodge NPC on the serverside. Otherwise it only destroys clientside (which is what it's doing right now). Do you understand?
|
Yes. Thanks:)
|
My pleasure. :)
|
would this work?
PHP Code:
|
I tried this:
PHP Code:
|
I've always considered sendtonc is the same thing as echo, and sendtorc the one that can perform the CLI stuff. Try sendtorc instead, pretty sure nothing happens though.
|
Yes, it doesn't work:p
|
I have never used sendtonc for anything other than echoing, i just thought it could possibly work.
|
| All times are GMT +2. The time now is 05:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.