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

Function SetMatCenPegToLevel1

scripts/LEVEL15.cpp:998–1003  ·  view source on GitHub ↗

Turns a lighting peg to Level 1

Source from the content-addressed store, hash-verified

996
997// Turns a lighting peg to Level 1
998void SetMatCenPegToLevel1(int peg) {
999 int obj_handle = GetMyObject(peg);
1000
1001 aObjSetLightingDist(obj_handle, 10.000000f);
1002 aObjSetLightingColor(obj_handle, 0.750000f, 0.000000f, 1.000000f);
1003}
1004
1005// Turns a lighting peg to Level 2
1006void SetMatCenPegToLevel2(int peg) {

Callers 8

aMatCenPuzzleInitFunction · 0.85
aMatCenPuzzleResetFunction · 0.85
aMatCenPuzzleSwitchAFunction · 0.85
aMatCenPuzzleSwitchBFunction · 0.85
aMatCenPuzzleSwitchCFunction · 0.85
aMatCenPuzzleSwitchEFunction · 0.85
aMatCenPuzzleSwitchFFunction · 0.85
aMatCenPuzzleSwitchGFunction · 0.85

Calls 3

GetMyObjectFunction · 0.85
aObjSetLightingDistFunction · 0.85
aObjSetLightingColorFunction · 0.85

Tested by

no test coverage detected