MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Script_Activate

Function Script_Activate

code/ui/ui_shared.cpp:2258–2271  ·  view source on GitHub ↗

================= Script_Activate ================= */

Source from the content-addressed store, hash-verified

2256=================
2257*/
2258qboolean Script_Activate(itemDef_t *item, const char **args)
2259{
2260 const char *name, *menu;
2261
2262 if (String_Parse(args, &menu))
2263 {
2264 if (String_Parse(args, &name))
2265 {
2266 Item_ActivateByName(menu,name);
2267 }
2268 }
2269
2270 return qtrue;
2271}
2272
2273/*
2274=================

Callers

nothing calls this directly

Calls 2

Item_ActivateByNameFunction · 0.85
String_ParseFunction · 0.70

Tested by

no test coverage detected