![]() |
weapons and events
for some reason when I use a weapon that uses events offline, it wont work when I go into the editor and load a level without the weapon (to re-add it to the weapons).
NPC Code: put that into a level, load it, then go into the editor and load a different level, now it doesn't work!? They'll start working again if they are called with weaponfired, but this is really annoying and not all my weapons can be called that way... |
It should be Clientside if you are using it on a NPC-Server, and use addweapon and not to weapons.
|
Why would you put destroy; after toweapons?
|
Quote:
|
But that also destroys the weapon unless he uses addweapon
|
Re: weapons and events
Quote:
NPC Code:if (created&&!isweapon) it won't destroy when it's a weapon |
Oh yes, I noticed that too. Online it was even worse on Classic because sometimes the system scripts didn't work or weapons didn't initialize correctly. But I thought that was fixed in v2.16 rev2:
Quote:
|
scripts end after toweapons, so that destroy; is just taking up space. =_=
Oh yeah. And keypressed is clientside only, isn't it? So this'd have to be clientside...if that command works on nonNPCServers at all, and I'm not convinced it does... |
| All times are GMT +2. The time now is 05:29 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.