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

Function aRoomChangeWind

scripts/DallasFuncs.cpp:3292–3303  ·  view source on GitHub ↗

$$ACTION Rooms Change wind in room [r:Room] to direction = <[f:X],[f:Y],[f:Z]>, speed = [f:Speed=1.0] over [f:Time=10.0] seconds aRoomChangeWind Change wind in room Changes the wind in a room over time 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) Time: how long the change t

Source from the content-addressed store, hash-verified

3290$$END
3291*/
3292void aRoomChangeWind(int roomnum, float x, float y, float z, float speed, float time) {
3293 msafe_struct mstruct;
3294
3295 mstruct.roomnum = roomnum;
3296 //!!mstruct.wind = *v;
3297 mstruct.wind.x = x * speed;
3298 mstruct.wind.y = y * speed;
3299 mstruct.wind.z = z * speed;
3300 mstruct.interval = time;
3301
3302 MSafe_CallFunction(MSAFE_ROOM_CHANGING_WIND, &mstruct);
3303}
3304
3305/*
3306$$ACTION

Callers 7

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected