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

Function aObjSetLightingColor

scripts/DallasFuncs.cpp:2050–2059  ·  view source on GitHub ↗

$$ACTION Objects Set object [o:Object] lighting color = [f:Red=0.5],[f:Green=0.5],[f:Blue=0.5] aObjSetLightingColor Set object lighting color Sets the lighting color for an object Parameters: Object: the object to set R,G,B: the fog color (0.0 to 1.0 for each of R,G, & B) $$END */

Source from the content-addressed store, hash-verified

2048$$END
2049*/
2050void aObjSetLightingColor(int objhandle, float r, float g, float b) {
2051 msafe_struct mstruct;
2052
2053 mstruct.objhandle = objhandle;
2054 mstruct.r1 = r;
2055 mstruct.g1 = g;
2056 mstruct.b1 = b;
2057
2058 MSafe_CallFunction(MSAFE_OBJECT_LIGHT_COLOR, &mstruct);
2059}
2060
2061/*
2062$$ACTION

Callers 6

CallEventMethod · 0.85
CallEventMethod · 0.85
SetMatCenPegToLevel1Function · 0.85
SetMatCenPegToLevel2Function · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected