Simple syntactical Q

  • Please make sure you are familiar with the forum rules. You can find them here:
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:

    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.

    For more information about our privacy practices, please review the new Privacy Policy found here:


FNG / Fresh Meat
Dec 25, 2013
sorry for noob Q, I'm new to UnrealScript - Im trying to find the correct way to include a file

Ive tried `include(<filename>) But that doesnt work

Im trying to extend a class from another pkg source tree


MyClass extends ThisOtherClass

it gives me the error:

Script vs. Class name Mismatch - I know what that means and my script name is correct MyClass.uc

As if it thinks ThisOtherClass is the actual class name

is this even available in this version of UnrealScript.

Ive also tried #exec obj load file=ThisOtherClass.u

And it still doesnt see the super class

Maybe I need a search path like INCLUDE DIRECTORY in C

The docs are very vague about it. Im sure its something simple that im missing



FNG / Fresh Meat
Oct 13, 2005
Florida, USA
The unrealscript INCLUDE is a preprocessor function that basically concats the target file into the current file. Since you were doing that at the beginning, that's why you were getting the class/file mismatch.
Do don't want to do that :p

similarly, (and I have less experience with this one) the Exec LOAD is primarily used to allow non-code packages to have thier presense known to your current uScript. Examples of this are usually animation packages, or texture packages.

If you just want to subclass an existing class, you don't need to INCLUDE or Exec-Load it. You should just be able to declare the extends..

Some documentation on how it works is here:

If that doesn't work, I imagine your issue is more one of classpath issues.