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

Function aRoomSetLightingPulse

scripts/DallasFuncs.cpp:2208–2216  ·  view source on GitHub ↗

$$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 */

Source from the content-addressed store, hash-verified

2206$$END
2207*/
2208void 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

Callers 3

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected