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

Function SetMatCenPegToLevel0

scripts/LEVEL15.cpp:992–995  ·  view source on GitHub ↗

Turns a lighting peg to Level 0

Source from the content-addressed store, hash-verified

990
991// Turns a lighting peg to Level 0
992void SetMatCenPegToLevel0(int peg) {
993 int obj_handle = GetMyObject(peg);
994 aObjSetLightingDist(obj_handle, 0.000000f);
995}
996
997// Turns a lighting peg to Level 1
998void SetMatCenPegToLevel1(int peg) {

Callers 5

aMatCenPuzzleSwitchBFunction · 0.85
aMatCenPuzzleSwitchCFunction · 0.85
aMatCenPuzzleSwitchDFunction · 0.85
aMatCenPuzzleSwitchEFunction · 0.85
aMatCenPuzzleSwitchGFunction · 0.85

Calls 2

GetMyObjectFunction · 0.85
aObjSetLightingDistFunction · 0.85

Tested by

no test coverage detected