Starting some scripting, looking for some commands
Posted: Tue May 23, 2017 7:25 am
I've written scripts before, and I've even written in UnrealScript before. But I've never done any scripts in UT99 before, so I don't really know how this game handles a lot of its, well, everything.
So I'm looking for some help getting started.
I already know the basics of writing code, but I don't know what existing functions I can call, nor what existing methods I have to conform to.
When looking through the documentation and tutorials I have found through this site, I have been unable to find anything that gets into the real meat of scripting for Unreal; just basic beginner stuff of writing code in general and compiling. Nothing that can explain to me how to do anything specific. I'm hoping someone here can fill in the gaps, or at least show me how to find out these things on my own.
Right now what I'm looking to do is to modify a mutator someone made to add in some features that I am looking for. Conceptually, this isn't hard, but I have no clue what functions I need to call.
The first thing I need to do is cause the mutator to spawn some bots (under certain conditions) and then remove those bots (under certain conditions). I know this is possible because I can see other mutators that do it, but I can't see the code they used.
The next thing I need to do is display some text on the HUD. Not the message that goes to the log, but text displayed prominently in the center of the screen, like when you make a double-kill.
I'm also curious if it is possible to have code that responds to player input and displays text before the player is spawned into the game, in those first few seconds when a match "exists" and everyone is in spectator mode and no one has spawned yet. If so I would like to add the capacity for players to preemptively set how they spawn in connection with this mutator.
And the last thing I would want to do is call a function or two if the player remains dead for too long.
I could guess how to set this stuff up, but code doesn't work on guesses or people describing the gist of what they want; code needs to be exact.
I feel really silly asking for this stuff, because anyone who could tell me how to do any of this could also just write the code themselves easier than it could be explained. But unless I can find some examples of what I am looking for and/or a complete and searchable documentation on the scripting API, then the only resource I have is to ask.
So I'm looking for some help getting started.
I already know the basics of writing code, but I don't know what existing functions I can call, nor what existing methods I have to conform to.
When looking through the documentation and tutorials I have found through this site, I have been unable to find anything that gets into the real meat of scripting for Unreal; just basic beginner stuff of writing code in general and compiling. Nothing that can explain to me how to do anything specific. I'm hoping someone here can fill in the gaps, or at least show me how to find out these things on my own.
Right now what I'm looking to do is to modify a mutator someone made to add in some features that I am looking for. Conceptually, this isn't hard, but I have no clue what functions I need to call.
The first thing I need to do is cause the mutator to spawn some bots (under certain conditions) and then remove those bots (under certain conditions). I know this is possible because I can see other mutators that do it, but I can't see the code they used.
The next thing I need to do is display some text on the HUD. Not the message that goes to the log, but text displayed prominently in the center of the screen, like when you make a double-kill.
I'm also curious if it is possible to have code that responds to player input and displays text before the player is spawned into the game, in those first few seconds when a match "exists" and everyone is in spectator mode and no one has spawned yet. If so I would like to add the capacity for players to preemptively set how they spawn in connection with this mutator.
And the last thing I would want to do is call a function or two if the player remains dead for too long.
I could guess how to set this stuff up, but code doesn't work on guesses or people describing the gist of what they want; code needs to be exact.
I feel really silly asking for this stuff, because anyone who could tell me how to do any of this could also just write the code themselves easier than it could be explained. But unless I can find some examples of what I am looking for and/or a complete and searchable documentation on the scripting API, then the only resource I have is to ask.