GSC reference › Built-in
GetScriptBundleNames()
Built-in (engine)
Server + client
Returns all the names of the script bundles of the specified type in an array.
Signature
GetScriptBundleNames()
Returns
Returns all the names of the script bundles of the specified type in an array.
Example (from Treyarch's docs)
settings = GetScriptBundleNames( "scene" )
Real uses in BO3's scripts
Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.
Related built-ins
- GetScriptBundle()Returns the script bundle struct.
- GetScriptBundleList()Returns the script bundle list array.
- GetScriptBundles()Returns a list of script bundles based on the type.
- SetUkkoScriptIndex()Set ukko index from script.
- AnimScripted()Runs an animscript on an entity.
- StopAnimScripted()Halts animscript on this entity.
- ForceStreamBundle()Force the assets in a script bundle to stream in
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
- IsPlayingAnimScripted()Returns true if the entity is playing in scripted animation.
- IsInScriptedState()Checks if actor is in a scripted state (animscripted, custom, negotiation)
- SetPlayerNameString()Set the player name string for a HUD element
- CameraForceDisableScriptCam()Disable the script cam from client script.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).