News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 8th Sep 2001, 06:32 PM   #1
BrownCow
I Heart Gnat.
 
Join Date: Jun. 18th, 2000
Posts: 965
Copying Var's and Rep Info

Ok, since this is the only real problem i've been having with uscript, i'll ask it.


I make a mutator, the mutator has 1 config var. It is a boolean lets say.

I subclass a player class. In ModifyPlayer i write this line of code:

Pawn(Other).myBool = myBool;

Obviously i didn't subclass that class, but this is what i'm doing w/o getting into details.

Now, if i log the Pawn's myBool var, it will be correct. WHen it comes time, in game to actually use it, it is blank. Like the bool is None, not false, not true, None.

First question, why the hell can you not do that? It is never going to be changed, i don't understand why i'd have to use Replication to do something as simple as this.

Unless i don't. If i don't, please tell me how to do something as simple as copying a boolean from mutator to class w/o using replication.

And lets say i did replication, i would do this in my player class:

replication
{
reliable if( ROLE == ROLE_AUTHORITY )
myBool;
}

is that correct? That would say, server send this bool to the client.


i've read all the stupid tuts and faq's, for the most part, they are next to useless for the stuff that really matters. If anyone could help, that would be great.

thanks
-cow
BrownCow is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer