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

Function aDoorSetPos

scripts/DallasFuncs.cpp:1762–1769  ·  view source on GitHub ↗

$$ACTION Doors Set door [d:Door] position to [p:Position] aDoorSetPos Set door position Moves the door to the specified position Parameters: Door: the object of the door to be set Position: the position of the door, with 0% being fully closed and 100% fully open $$END */

Source from the content-addressed store, hash-verified

1760$$END
1761*/
1762void aDoorSetPos(int objhandle, float pos) {
1763 msafe_struct mstruct;
1764
1765 mstruct.objhandle = objhandle;
1766 mstruct.scalar = pos;
1767
1768 MSafe_CallFunction(MSAFE_DOOR_POSITION, &mstruct);
1769}
1770
1771/*
1772$$ACTION

Callers 15

cMalfunctionRegionDoorsFunction · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
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