![]() |
Triggeraction....
When i try to do a triggeraction from clientside to serverside on a normal npc, it works, but if i do it more, it wont work...
It only works once... Anyone have an idea about what's wrong? |
Re: Triggeraction....
Quote:
|
::fully agrees::
We're assuming this is a weapon right? ---Shifter |
Quote:
NPC Code: This is NOT the whole script. Also, the player is attached to it. EDIT: It wont triggeraction AFTER the first timeout=1; serverside. I have no idea why. |
NPC Code: I think there is no need to trigger the npc every time when the position is changed,i tested the script online and worked fine. PS:It's not the whole code,Kai :D |
Quote:
[edit] NPC Code: I tested it with move... and its not working... why? [/edit] Also, I have another problem with triggeraction... Its a weapon, triggering something clientside. I have a NPC on a level checking for it serverside if (action...), but it won't work! Strangly, it works clientside, but not serverside! (Weapon Clientside to NPC Serverside) Please respond if you know the problem. |
Quote:
About the move thing,i'm not sure,i rarely use move x_x' |
but the mining thing doesn't say how to use it from a clientside weapon to a serverside npc!
|
I think its not working because the local NPC moves every time,saving the npc position would work (I think x_o)
|
Its not a local NPC, it's a normal NPC in a level. But if i do the if (action...) clientside, it works!
Help anyone? clientside weapon > triggeraction to a serverside npc. |
Quote:
|
Quote:
|
Quote:
Quote:
|
You can't have something done on Clientside effect something on serverside, they don't mix, only variables transfer between the two. I am a newbie at scripting, so I might be wrong.
|
Quote:
|
Quote:
*sigh* If you know you are a newbie at scripting, do not try to help others out unless you are absolutely certain that you know what you are talking about (and even then, it's best to get someone else to verify). It hurt my eyes, please don't make posts incredibly huge, may I recommend using a color. -Falados |
The weapon triggeraction thing is fixed, PS helped me with it :)
I still want to know why move aint working..everything is ok, but when the timeout starts, it wont triggeraction again. |
Its probably b/c you are still using clientside coordinates for the server-side NPC, you moved the server-side part of it, but the clientside part remains where it is... posibly moving the client-side part to the new location aswell would work (set the clientside part's X and Y after you triggeraction)?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
lol tseng you act like he swore or something, rofl relax k? he was offering help |
Quote:
Or, even worse, attempting to teach others how to do so? |
well, you act rather extreme about it, a simple "dont speak unless you know wtf you are talking about" would do just fine, minus the feeling that he is going to be banned or something if he offers opinions/makes an attempt to help
|
Fal-
Colors hurt the eyes more. With size 48 text, I had thought perhaps someone might actually read it, and perhaps even listen to it. Quote:
|
all i am saying, it is you overreacted
|
Quote:
When things like this happen, and the uninformed attempt to teach others, we have a world full of scripters who a) write inefficient code, and b) are less willing to believe that they are doing something wrong, which only makes it harder for these problems to be corrected, and creates more unnecessary work for the global scripting team. |
doesnt change the fact you O V E R R E A C T E D to someone attempting to do something good, and help others.
|
Quote:
|
Quote:
|
Quote:
|
People who persist in giving bad advice get masked from the scripting forum. Androk, don't say things if you're not sure that they're correct.
|
I'm still trying to figure out WHAT clientside thing NEEDS to be clientside thing in a LOCAL NPC needs to be sent to the serverside of that NPC? Best to just keep it serverside or clientside x-x
---Shifter |
Both problems=solved.
Alex helped me with the move thingy. Thanks everybody. |
Quote:
|
Quote:
Now its x+.5 and y+5. :) |
Quote:
Quote:
|
Ah, a simple case of leaping before you look.
|
I only read the first page, so forgive me if this has been said.
NPCs in a level ARE serverside. NPCs placed with putnpc2 are serverside. In fact, the ONLY way a NPC is not serverside is if it has //#CLIENTSIDE at the top of it. Otherwise, it is serverside. Correct me if I am wrong. |
Quote:
|
| All times are GMT +2. The time now is 09:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.