A little help for coding on UnrealScript

Discussions about Coding and Scripting
User avatar
Posts: 34
Joined: Sun May 31, 2020 10:07 pm

A little help for coding on UnrealScript

Post by UnrealWarrior » Mon Jul 25, 2022 12:04 am

I wanna learn to code on UnrealScript, I went to the script editor and opened the Enforcer class, and oh boy! I didn't understand anything lol

I wanna make things like for example: if you press on something let's say, a keypad, it takes the input, and if the input is correct, a door opens. or if you press a button quickly, the door opens. I don't know if it's possible, but a small idea. but I don't even know where to start.

I have a good knowledge of JS and Python (I know what a variable is). but coding in UScript or editing the code in those scripts are tough.

So, what do you guys suggest?
"We have nothing to fear but fear of tigers"

~tiger attack survivor

User avatar
Posts: 266
Joined: Wed Nov 09, 2016 1:48 am

Re: A little help for coding on UnrealScript

Post by ExpEM » Mon Jul 25, 2022 1:15 am

Start smaller, much smaller.
Key pads are a complex beast, Operation Napali has such code in it if you want to browse that.

I'd say to get started with UT coding work on a few mutators first, like Vampirism (shoot someone and get 50% of the damage done back as health).
Work up to custom Weapons / Pickups etc.
UT has a -messy- code structure and it takes a long time to learn where code is being inherited from and what to watch out for in parent classes etc.

Simply reading UT code is a good place to start, try to understand how it works.
Signature goes here.

Posts: 72
Joined: Sat Jun 01, 2013 10:38 am

Re: A little help for coding on UnrealScript

Post by sn260591 » Mon Jul 25, 2022 8:57 am

User avatar
Posts: 5462
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: A little help for coding on UnrealScript

Post by Feralidragon » Mon Jul 25, 2022 11:00 am

Well, I did this in this very forum several years ago:

It's a bit outdated on the UScript IDE itself (I use VS Code nowadays instead of Notepad++, and I have my own customized highlighter), but other than that, the usage of UMake and the code all should work, and I think it's a simple enough introduction to how at least make your own package.

From there, you can develop the rest by checking the actual game code, little by little, preferably through an Uncodex site, like this one:
(although this one is a bit outdated with the releases of 469 patches)

User avatar
Posts: 144
Joined: Sat Apr 04, 2009 6:00 pm
Personal rank: DHR
Location: Canada

Re: A little help for coding on UnrealScript

Post by smeerkat » Fri Jul 29, 2022 10:20 pm

Let me know if this was useful, would love your feedback:

Posts: 64
Joined: Sun Jul 01, 2018 12:37 am

Re: A little help for coding on UnrealScript

Post by gamerz31w » Sat Jul 30, 2022 8:07 pm

Maybe you should do a video tutorial Smeerkat of how to swap(any custom debug menu/Unreal Command Console) character models as in-game mode kind of like during gameplay in Harry Potter 2 PC version(Microsoft Windows XP hardware/software era).?

User avatar
Posts: 529
Joined: Sun Jul 12, 2009 7:10 pm
Personal rank: Dude
Location: Trieste, Italy

Re: A little help for coding on UnrealScript

Post by UTPe » Sun Jul 31, 2022 10:35 pm

Hi UnrealWarrior,
I found this tutorial in my old folders, hope can help.
You do not have the required permissions to view the files attached to this post.
Personal map database: http://www.ut99maps.net

"These are the days that we will return to one day in the future only in memories." (The Midnight)