MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aMatcenSetEnableState

Function aMatcenSetEnableState

scripts/DallasFuncs.cpp:3124–3129  ·  view source on GitHub ↗

$$ACTION Misc [e:Enable/Disable] matcen [m:Matcen] aMatcenSetEnableState Enable/disable matcen Enable or disable a matcen, so it's capable of producing Parameters: Enable/Disable: whether the matcen is cabable of producing Matcen: the matcen to enable or disable $$END */

Source from the content-addressed store, hash-verified

3122$$END
3123*/
3124void aMatcenSetEnableState(int state, int matcen_id) {
3125 int flags = MSTAT_DISABLED;
3126
3127 if (matcen_id >= 0)
3128 Matcen_Value(matcen_id, state ? VF_CLEAR_FLAGS : VF_SET_FLAGS, MTNV_I_STATUS, &flags);
3129}
3130
3131/*
3132$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
SetMatCenToLevel0Function · 0.85
SetMatCenToLevel1Function · 0.85
SetMatCenToLevel2Function · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls 1

Matcen_ValueFunction · 0.85

Tested by

no test coverage detected