$$ACTION Rooms Set room [r:Room] lighting pulse time = [f:PulseTime] offset = [f:PulseOffset] aRoomSetLightingPulse Set room lighting pulse values Sets the lighting pulse values for a room Parameters: Room: the room to set PulseTime: how long a pulse cycle takes, or 0 to turn off pulse PulseOffset: the time offset for this pulse $$END */
| 2206 | $$END |
| 2207 | */ |
| 2208 | void aRoomSetLightingPulse(int roomnum, float time, float offset) { |
| 2209 | msafe_struct mstruct; |
| 2210 | |
| 2211 | mstruct.roomnum = roomnum; |
| 2212 | mstruct.pulse_time = (uint8_t)(time * 100); |
| 2213 | mstruct.pulse_offset = (uint8_t)(offset * 100); |
| 2214 | |
| 2215 | MSafe_CallFunction(MSAFE_ROOM_LIGHT_PULSE, &mstruct); |
| 2216 | } |
| 2217 | |
| 2218 | /* |
| 2219 | $$ACTION |