2025-05-12 09:43:51 -07:00
|
|
|
const cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager);
|
|
|
|
|
const playerEnt = cmpPlayerManager.GetPlayerByID('1');
|
|
|
|
|
const cmpModifiersManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_ModifiersManager);
|
2021-02-28 04:16:32 -08:00
|
|
|
cmpModifiersManager.AddModifiers("cheat/fastactions", {
|
|
|
|
|
"Cost/BuildTime": [{ "affects": [["Structure"], ["Unit"]], "multiply": 0.01 }],
|
|
|
|
|
"ResourceGatherer/BaseSpeed": [{ "affects": [["Structure"], ["Unit"]], "multiply": 1000 }],
|
|
|
|
|
"Pack/Time": [{ "affects": [["Structure"], ["Unit"]], "multiply": 0.01 }],
|
|
|
|
|
"Upgrade/Time": [{ "affects": [["Structure"], ["Unit"]], "multiply": 0.01 }],
|
|
|
|
|
"ProductionQueue/TechCostMultiplier/time": [{ "affects": [["Structure"], ["Unit"]], "multiply": 0.01 }]
|
|
|
|
|
}, playerEnt);
|