Hi all,
This is my first post. Been playing unreal and mapping for many years. However I am fairly new to scripting. What I want to know is how I can add additional variables to a player. I want to make a mod where players gain experience for kills and advance in levels. I need some variables to hold values for experience and level, and need to be able to update those values throughout the game. I have tried subclassing Pawn, xPawn, and xPRI but haven't had much luck. I'm not sure where I should be placing these variables and how to make them accessible. When compiling I am usually getting errors about the variable not being a member of xPawn, or something similar. I'm guessing after I subclass and declare those variables, that there's something else I need to do to tie it all together. But I'm lost at this point. I've googled for 2 days with no luck. So if anyone can help I would be very thankful. Also, if and when I figure out where to add these new variables, do I need to be adding a REPLICATION statement for them somewhere. Being new to this replication is still a bit of a mystery to me. Thanks in advance to anyone who can help.
-Time
This is my first post. Been playing unreal and mapping for many years. However I am fairly new to scripting. What I want to know is how I can add additional variables to a player. I want to make a mod where players gain experience for kills and advance in levels. I need some variables to hold values for experience and level, and need to be able to update those values throughout the game. I have tried subclassing Pawn, xPawn, and xPRI but haven't had much luck. I'm not sure where I should be placing these variables and how to make them accessible. When compiling I am usually getting errors about the variable not being a member of xPawn, or something similar. I'm guessing after I subclass and declare those variables, that there's something else I need to do to tie it all together. But I'm lost at this point. I've googled for 2 days with no luck. So if anyone can help I would be very thankful. Also, if and when I figure out where to add these new variables, do I need to be adding a REPLICATION statement for them somewhere. Being new to this replication is still a bit of a mystery to me. Thanks in advance to anyone who can help.
-Time