$$ACTION Rooms Set fog in room [r:Room] to color = [f:Red=0.5],[f:Green=0.5],[f:Blue=0.5], depth = [f:Depth=300.0] aRoomSetFog Set room fog Sets the fog color and depth for a room Parameters: Room: the room to set R,G,B: the fog color (0-1) Depth: how deep the fog should be $$END */
| 3165 | $$END |
| 3166 | */ |
| 3167 | void aRoomSetFog(int roomnum, float r, float g, float b, float depth) { |
| 3168 | msafe_struct mstruct; |
| 3169 | |
| 3170 | mstruct.roomnum = roomnum; |
| 3171 | mstruct.fog_depth = depth; |
| 3172 | mstruct.fog_r = r; |
| 3173 | mstruct.fog_g = g; |
| 3174 | mstruct.fog_b = b; |
| 3175 | |
| 3176 | MSafe_CallFunction(MSAFE_ROOM_FOG, &mstruct); |
| 3177 | } |
| 3178 | |
| 3179 | /* |
| 3180 | $$ACTION |
no outgoing calls
no test coverage detected