UnrealScript help, please...

Anythang about UnrealED
User avatar
RisingFury
Double Kill
Double Kill
Posts: 50
Joined: Wed Jul 26, 2006 12:00 am

UnrealScript help, please...

Postby RisingFury » Wed Jan 24, 2007 7:48 am

Well, I could not find and UnrealScript related forums so I guess this will have to do.


I'm working on a little mutator and I got somewhat stuck. I have 4 classes, let's name them A, B, C and D. A is the top class, B and C extend from A, and D extends from C. So we get this picture:

A
| |
C B
|
D

Now, In class A, I have declared a variable. Let's call it Var1 so the rest of the classes inharit it. And here is what happens:

B class determines a number of Var1. And I want class C and class D to get that number too. It's vital tot he functionality of the whole mutator.

Now, class B spawns class C and C spawns D. I've treid spawning them into a variable (X = Spawn(Class'C); and after that X.Var1 = something, but that doesn't work. When I wrote a log("Var1 is: " $ Var1); in the C class, it came up 0 in the log.

I need a way to forward the variable from class B to C and D.

If anyone could help me, I'd appreciate it. My MSN is MERkurc@passport.com

Thanks in advance :D
Image

http://RisingFury.Clan-SoT.com
UnrealEd 2 mapping video tutorials: Over 4 hours
UnrealScript coding video tutorials: Over 3 hours
More to come very soon ;)
User avatar
MattMan
Site Admin
Site Admin
Posts: 1474
Joined: Thu Aug 25, 2005 12:00 am
Location: New York
Contact:

Postby MattMan » Wed Jan 24, 2007 11:44 am

We lost all of our modding people but TOAO KILLER may beable to help you out. He's made some really cool stuff.. His website can be found here: http://www.toaosniperclan.com/
Image
User avatar
RisingFury
Double Kill
Double Kill
Posts: 50
Joined: Wed Jul 26, 2006 12:00 am

Postby RisingFury » Wed Jan 24, 2007 12:13 pm

Thanks :D
Image



http://RisingFury.Clan-SoT.com

UnrealEd 2 mapping video tutorials: Over 4 hours

UnrealScript coding video tutorials: Over 3 hours

More to come very soon ;)

Return to “UnrealED”

Who is online

Users browsing this forum: No registered users and 1 guest