$$ACTION Rooms Change fog in room [r:Room] to color = [f:Red=0.5],[f:Green=0.5],[f:Blue=0.5], delpth = [f:Depth=200.0] over [f:Time=20.0] seconds aRoomChangeFog Change room fog Changes the fog in a room over time Parameters: Room: the room to set R,G,B: the new fog color (0-1) Depth: how deep the fog should be after the change (starts from the current fog depth) Time: how long in seconds
| 3190 | $$END |
| 3191 | */ |
| 3192 | void aRoomChangeFog(int roomnum, float r, float g, float b, float depth, float time) { |
| 3193 | msafe_struct mstruct; |
| 3194 | |
| 3195 | mstruct.roomnum = roomnum; |
| 3196 | mstruct.fog_depth = depth; |
| 3197 | mstruct.fog_r = r; |
| 3198 | mstruct.fog_g = g; |
| 3199 | mstruct.fog_b = b; |
| 3200 | mstruct.interval = time; |
| 3201 | |
| 3202 | MSafe_CallFunction(MSAFE_ROOM_CHANGING_FOG, &mstruct); |
| 3203 | } |
| 3204 | |
| 3205 | /* |
| 3206 | $$ACTION |
no outgoing calls
no test coverage detected