The Utility script is a part of Starfield’s Papyrus scripting ecosystem. It is included with the base game.
For this script, the Papyrus index knows about:
- 39 functions
Inheritance Tree
No indexed scripts extend this script.
Structs
The Papyrus Index is still under construction. Structs have not been implemented yet.
Properties
No properties found.
Events
No events found.
Functions
- Found in:
- Vanilla
Calls a global function synchronously and returns whatever that function does.
- Found in:
- Vanilla
voidfunctionCallGlobalFunctionNoWait(stringasScriptName, stringasFuncName, var[]aParams)NativeGlobalCalls a global function asynchronously. Script execution continues immediately without waiting for the global function you called to finish (or even start).
- Found in:
- Vanilla
Converts the passed-in game time (in game days passed) to a string detailing the date and time it represents. The resulting format is: "MM/DD/YYYY HH:MM" and uses a 24-hour clock.
- Found in:
- Vanilla
Obtains the current game time in terms of game days passed (same as the global variable)
- Found in:
- Vanilla
Gets the number of real-world seconds that have elapsed since the game has launched. This time does not count time the game has been alt-tabbed, or other cases where the game has been frozen (i.e. during a save or load, time in a menu is counted). This function is most useful for timing a long operation.
- Found in:
- Vanilla
Obtains the stack ID of the currently running stack where this function is called.
- Found in:
- Vanilla
Returns whether the game is currently in menu-paused or not
- Found in:
- Vanilla
Generates a random floating point number between the minimum and maximum values (inclusive).
- Found in:
- Vanilla
float[]functionRandomFloatsFromSeed(intaiSeed, intaiCount, floatafMin=0.0, floatafMax=1.0)NativeGlobalGenerates an array of pseudorandom floating point numbers from a specific seed between afMin and afMax (inclusive)
- Found in:
- Vanilla
Generates an array of pseudorandom integer numbers from a specific seed between aiMin and aiMax (inclusive)
- Found in:
- Vanilla
Sets a float value in the Fallout 4 Initialization Files (
.ini).- Found in:
- Vanilla
Sets an integer value in the Fallout 4 Initialization Files (
.ini).- Found in:
- Vanilla
Sets a boolean value in the Fallout 4 Initialization Files (
.ini).- Found in:
- Vanilla
Sets a string value in the Fallout 4 Initialization Files (
.ini).- Found in:
- Vanilla
String parsing functions
- Found in:
- Vanilla
Pauses the script for at least the specified amount of game time. This function is latent.
- Found in:
- Vanilla
Waits for the specified amount of time (latent) - Timer WILL run during menu mode
- Found in:
- Vanilla
Gets you a string describing the frame rate for a certain number of frames
(String will be no longer than 1K characters long, separated by commas)- Found in:
- Vanilla
voidfunctionEnterTestData(stringastestType, stringastestMatter, stringastestDetails, stringastestResultContext, stringastestResult)NativeGlobalDebugOnlySends the passed in test data to the tests website.
- Found in:
- Vanilla
Sends the start up times to the tests website.
- Found in:
- Vanilla
Starts or ends a frame rate capture -- then you can get the min or max since
frame capture started at any time- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
Memory tracking functions - only available if memory tracking is turned on
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
- Found in:
- Vanilla
floatfunctionExpiryDay(floatDaysFromNow, PlanetLocalPlanet=NONE, floatMaxUniversalDays=-1, floatFutureStartDay=-1)Globalreturns a float representing days in the future from now (in terms of GameDaysPassed - where 1 = 24 hours)
DaysFromNow: how many days in the future should the expiration date be?
LocalPlanet: (optional, ignored if none) will scale DaysFromNow so that it will reflect local day length on planet is if different than universal 24 standard
MaxUniversalDays: (optional, ignored if <= 0) - no matter the local day length scale, this is the max (24 hour) days you want to add - useful for tidally locked planets, or planets with exceptionally long days
FutureStartDay: (optional, ignored if < GameDaysPassed) - the start day to add DaysFromNow to.- Found in:
- Vanilla
checks to see if the passed in value is less than the current day
- Found in:
- Vanilla
returns hours until specified LOCAL target hour (local equivalent of 24-hour time, 0.0-24.0)
- Found in:
- Vanilla
ObjectReferencefunctionGetFirstPlayer(ObjectReferencerefToCheck01, ObjectReferencerefToCheck02, ObjectReferencerefToCheck03=NONE, ObjectReferencerefTocheck04=NONE)Globalreturns first player in list of refs passed in (mainly for use in distance check events)
- Found in:
- Vanilla
ObjectReferencefunctionGetFirstNonPlayer(ObjectReferencerefToCheck01, ObjectReferencerefToCheck02, ObjectReferencerefToCheck03=NONE, ObjectReferencerefTocheck04=NONE)Globalreturns first non-player in list of refs passed in (mainly for use in distance check events)
