![]() |
Passing variables to classes...
Alright, here's my problem...
I'm using a weapon with putnpc2 that is a "join class;" but I want to pass a variable to that class from the weapon, I know you can pass the variable from a weapon to putnpc2 through via NPC Code: but that variable (this.test) doesn't pass onto the class... and I want to know I can pass that variable onto the class. Can that be done? |
its doing the message #v(this.test) before you even set the this.test variable
NPC Code: might work or just try setting this.test on the putnpc2 part? |
Quote:
|
post teh class
|
Ok, here's the basic of what I have...
WEAPON: NPC Code: CLASS: NPC Code: That's not my actual script, it's much longer, but you get the idea, that still won't work. |
normal vars set serverside cant be accessed clientside, use a save var for your script ( save[0] = 3 )
|
Quote:
|
Why do you need to do it clientside at all?
The class you posted would be fine serverside. |
Quote:
|
| All times are GMT +2. The time now is 06:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.