![]() |
Local NPC Script
Can anyone tell me how to get/modify the script of a local NPC?
I'm pretty sure I've seen it done before.. For some reason, I thought it was npcs[index].script. But it's not. Any ideas? |
edit the level itself with a script.
(open the level as a text file, search for SCRIPT, modify, save file, update level if needed) |
Quote:
NPC Code: EDIT: You should define local NPC. I was thinking NPCs placed using putnpc2. If you are talking about level NPCs, then calani's method works. |
Thanks.
z-z For some reason, I was using "npcs" |
I think the script of local npcs cannot be loaded with requesttext yet, but that will be added soon, together with a possibility to freeze the local npcs while editing
|
Quote:
|
How would you go about loading the flags of an NPC?
|
Quote:
|
npcs[index].getvars()
|
Quote:
Does that work for DB NPCs? |
Quote:
NPC Code: |
| All times are GMT +2. The time now is 08:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.