$$ACTION Rooms Set wind in room [r:Room], direction = <[f:X],[f:Y],[f:Z]>, speed = [f:Speed=1.0] aRoomSetWind Set wind in room Sets the wind in a room Parameters: Room: the room in which to set the wind X,Y,Z: the direction vector for the wind Speed: the speed of the wind (10.0 is faster than the player ship) $$END */
| 3263 | $$END |
| 3264 | */ |
| 3265 | void aRoomSetWind(int roomnum, float x, float y, float z, float speed) { |
| 3266 | msafe_struct mstruct; |
| 3267 | |
| 3268 | mstruct.roomnum = roomnum; |
| 3269 | //!!mstruct.wind = *v; |
| 3270 | mstruct.wind.x = x * speed; |
| 3271 | mstruct.wind.y = y * speed; |
| 3272 | mstruct.wind.z = z * speed; |
| 3273 | |
| 3274 | MSafe_CallFunction(MSAFE_ROOM_WIND, &mstruct); |
| 3275 | } |
| 3276 | |
| 3277 | /* |
| 3278 | $$ACTION |
no outgoing calls
no test coverage detected