GSC reference › Built-in
PopulateScriptDebugMenu()
Built-in (engine)
Client
UI
Sets a UIModel from the model being passed in.
Signature
PopulateScriptDebugMenu(<localClientNum>, <array>)
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | Number of the local client on the machine. |
| array | Required | Array of menu item names for the debug menu. |
Example (from Treyarch's docs)
PopulateScriptDebugMenu( localClientNum, menu_items_array )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/debug_menu_shared.csc, line 21
populatescriptdebugmenu(localclientnum, a_menu_items);
Related built-ins
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
- NewDebugHudElem()
- CreateLUIMenu()Creates a LUI menu to be opened later with OpenLUIMenu.
- SetLUIMenuData()Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.
- SetUkkoScriptIndex()Set ukko index from script.
- AnimScripted()Runs an animscript on an entity.
- StopAnimScripted()Halts animscript on this entity.
- CloseLUIMenu()Closes the given lui menu and returns true if it finds the menu and succeeds in closing it, false otherwise.
- OpenLUIMenu()Opens a lui menu( has to be precahced ) and returns a handle to it.
- CloseInGameMenu()Close the in game menu for this client.
- GetLUIMenu()Returns a handle to a lui menu.
- OpenMenu()Open the menu with the given menu index
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).