![]() |
Script classes
yes this is a tech problem i noticed with classes here is the problem.
When i update a class, it says that the class was updated, and all the npcs of that class are updated. Great! Then i go to play to see if the npc is fixed, only to see it is not reading the updated scriptclass. In order to get it to work i have to update the level the npc is on. This never used to have to happen, the npc would update alone, thus the npc is fixed. Just wondering if anyone else is experincing the same problem |
It does update, but it doesn't "reset" meaning if you added some stuff in if (created) wouldn't be affected before you update the level. If you added something in a timeout loop, you would notice it.
|
Quote:
|
The npcs automatically use the new code. There can be following problems when updating a class:
- when npcs are doing a sleep inside the updated class then the npc is normally stopped (no sleep-reentry) - when the updated class catches more events (like you add an if (playertouchsme)) then the npc will still not get the playertouchsme-event until you update the level / npc |
Also: any code after //#CLIENTSIDE won't be updated until the level is updated.
|
| All times are GMT +2. The time now is 02:41 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.