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

Function aRoomSetWind

scripts/DallasFuncs.cpp:3265–3275  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3263$$END
3264*/
3265void 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

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
cExecTimerEventFunction · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected