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

Function aMatcenSetState

scripts/DallasFuncs.cpp:3104–3109  ·  view source on GitHub ↗

$$ACTION Misc [e:Activate/Deactivate] matcen [m:Matcen] aMatcenSetState Activate/Deactivate matcen Activates or Deactivates a matcen, so it starts or stops producing Parameters: Activate/Deactivate: whether to start or stop the matcen Matcen: the matcen to activate $$END */

Source from the content-addressed store, hash-verified

3102$$END
3103*/
3104void aMatcenSetState(int state, int matcen_id) {
3105 int flags = MSTAT_ACTIVE;
3106
3107 if (matcen_id >= 0)
3108 Matcen_Value(matcen_id, state ? VF_SET_FLAGS : VF_CLEAR_FLAGS, MTNV_I_STATUS, &flags);
3109}
3110
3111/*
3112$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
cDroidManagerCreateNewFunction · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls 1

Matcen_ValueFunction · 0.85

Tested by 1

CallEventMethod · 0.68