![]() |
Classes & Imgs
Err, why isn't this working? (Its a class)
if (created) setimg block.png; //#CLIENTSIDE //Everything else is down here etc.. It stay's the image that the npc get's from the level editor instead of going to block.png |
because if (created) is a clientside only flag
|
Quote:
Quote:
Quote:
|
if (created) isn't a clientside only flag.
Because, if it was. It wouldn't even join the class, now would it? if (created) join block; |
Um, no?
|
? Alright I am going to do what you said, I will bet you 1000$ it won't work.
|
Hey, what do you know? It didn't work, k bye.
Set img won't work at all in classes for me, unless clientside. |
Quote:
|
Alright then, how come it can't change the image at all then?
|
Alright, I think I got it to work. When the npc has an image under the editor, it can't be switched through a script serverside on a class :o
If (created) works tho |
Quote:
|
How many times do I need to remind people to not post bad scripting advice?
One more, it seems. I remind you that consistently posting bad scripting advice results in the inability to view/post in the scripting forum. Evil has the right idea about your problem, KuJi. |
Kuji, 'join' is not really a command per se. It is processed long before the script is executed and, at that point, it is simply replaced by the contents of the specified class. If your script does not work, think about what it would look like after that replacement.
|
Did I not say I fixed the problem? Or maybe, I thought I said it and I thought I posted stating that but other's don't see it. Also, you can close the thread now.
|
Quote:
|
Quote:
|
I don't understand a lot here ... the only thing i could imagine is that block.png is not existing, so the server doesn't allow the npc to switch to that image.
|
Well, I prolly spelled if (created) wrong or something. It works now lol.
And I was saying close it, cause the problem was solved. |
| All times are GMT +2. The time now is 07:59 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.