$$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 */
| 3102 | $$END |
| 3103 | */ |
| 3104 | void 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 |