![]() |
CLIENTSIDE Question
I was wondering if //#CLIENTSIDE had to be in every NPC you script with the client, or jsut in the NPCs that have NPC Server Functions in it?
|
Its for every npc that you don't want to NPC Server to control
|
oh
oh ive been thinking the opposite x.X
|
kkk
K Thanks alot, does toweapons work in a P2P Server also or do you have to use addweapon?
|
Re: kkk
Quote:
|
Re: Re: kkk
Quote:
serverside part of the weapon: NPC Code: Clientside part of the weapon: NPC Code: |
k Thanks alot, so if I got this all right I guess when you first put a NPC up you use toweapons, go to the item and touch it so it adds itself to the database, then change it to addweapon for everyone else. k I think I got it. Here is one of my scripts, would this work?
NPC Code: NPC Code: NPC Code: Would they work online in a P2P Server? |
-=Josey=-
I do believe all of that would've worked with the //#CLIENTSIDE in them. |
toweapons/addweapon must be called on the server-side,
otherwise you are disconnected (hacker activity) |
Quote:
|
I got cha, thats smart. ;). Well it makes sence at least.
|
k
So then, it doesnt really matter which one I use. Ok thanks alot Stefan for making it clear for me.
|
Both should be used server-side as stefan said, toweapons you use when you want the script to come from the NPC itself, addweapon you only use if the weapon in the weapons database already.
|
Thanks alot guys, ever since I quit working on Manatra2001 and became a free lance level designer and scripter I've been learning alot!
|
All times are GMT +2. The time now is 07:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.