![]() |
Here an example for a class 'followers'.
First an NPC that joins that class: NPC Code: And here the class file: NPC Code: The follow script uses the array this.followpos to remember the walking position of the player. You can see that the NPC is overwriting the function stopingFollow() to implement its own code (saying 'STOP' for 3 seconds). You can see that using the followers script is very simple, you only need to set this.owner, then call followPlayer() If you have questions or improvements then let me know |
what does?
what does the function 'join' do?
you used it like this join followers; and I am just wondering if you could give me a small tatoral on how to use it and what it does |
Yes classes are saved in text files, but
you need the npccontrol to change the class script |
so I am guessing
I am guessing it would be a good idea to put a system weapon inside of a txt file and join it. So then you dont have to have a function in the npc weapon to warp them to a level to get the new update of the system weapon?
am I correct? |
Actually, if you just stored the system script as a server NPC with the name System-NPC I think you could use:
addweapon System-NPC; And it should update every logon. Question: Can NPCWs join a server script? Like for a bow, you have the local script with all the shooting stuff, but for a few global functions like possibly how arrows move you want to join a server script instead of having to write it in every single weapon that's a bow-type. |
Quote:
-system so it is invisable and no one can delete it. and fyi it is 'toweapons <weapon name>' not addweapon |
weapons are something different,
join is not possible yet for weapons |
You could probably name the server npc -system too...not sure if the '-' would work. I was just giving an example for you to build off of though, I expected you to try at least to change the name. addweapon adds a script that's on the server as a weapon with the name of the NPC on the server.
As for joining with NPCWs, could that PLEASE be added soon? Something like: NPC Code: Not really a text file...those are kinda outta date... |
yes yes!
|
|
can i use the top script wihtou using the bottom 1?
|
im not makinf a class, im trying to make and image follow a player, one image, not different angles and everything, just bleh
|
Well
Im not exactly sure what you want that image to do, but since im not the greatest scripter, heres meh script!
if(playertouchsme){ followplayer; } I havent quite figured out how to make them follow you into different levels. I could do a really bugged up script that would works but it wont do anything spectacularly special. |
Thats a client-side thing that is taken out in the
next Graal version |
Stefan, I can't get weapons to add to your list. Since you said weapons can't be a class, should I make the NPC on NPC Control, thenm put the weapon script on Edit Script?
Otaku is confused.:confused: |
| All times are GMT +2. The time now is 07:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.