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

Function SetMatCenPegToLevel2

scripts/LEVEL15.cpp:1006–1011  ·  view source on GitHub ↗

Turns a lighting peg to Level 2

Source from the content-addressed store, hash-verified

1004
1005// Turns a lighting peg to Level 2
1006void SetMatCenPegToLevel2(int peg) {
1007 int obj_handle = GetMyObject(peg);
1008
1009 aObjSetLightingColor(obj_handle, 1.000000f, 0.000000f, 0.000000f);
1010 aObjSetLightingDist(obj_handle, 10.000000f);
1011}
1012
1013void PlayOnAnimation(int obj) { aObjPlayAnim(GetMyObject(obj), 20, 40, 2.000000f, 0); }
1014

Callers 6

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

Calls 3

GetMyObjectFunction · 0.85
aObjSetLightingColorFunction · 0.85
aObjSetLightingDistFunction · 0.85

Tested by

no test coverage detected