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

Function qPortalIsOn

scripts/DallasFuncs.cpp:6101–6110  ·  view source on GitHub ↗

$$QUERY Rooms b:Forcefield at portal [i:PortalNum] in room [r:Room] is on qPortalIsOn Forcefield is on Checks whether a forcefield is on Parameters: Room: The room the forcefield is in PortalNum: The portal number of the forcefield $$END */

Source from the content-addressed store, hash-verified

6099$$END
6100*/
6101bool qPortalIsOn(int portalnum, int roomnum) {
6102 msafe_struct mstruct;
6103
6104 mstruct.roomnum = roomnum;
6105 mstruct.portalnum = portalnum;
6106
6107 MSafe_GetValue(MSAFE_ROOM_PORTAL_RENDER, &mstruct);
6108
6109 return mstruct.state;
6110}
6111
6112/*
6113$$QUERY

Callers 5

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