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

Function aObjSetLightingDist

scripts/DallasFuncs.cpp:2028–2035  ·  view source on GitHub ↗

$$ACTION Objects Set object [o:Object] lighting distance to [f:Distance] aObjSetLightingDist Set object lighting distance Sets the lighting distance for an object Parameters: Object: the object to set Distance: how far the light from the object will cast $$END */

Source from the content-addressed store, hash-verified

2026$$END
2027*/
2028void aObjSetLightingDist(int objhandle, float dist) {
2029 msafe_struct mstruct;
2030
2031 mstruct.objhandle = objhandle;
2032 mstruct.light_distance = dist;
2033
2034 MSafe_CallFunction(MSAFE_OBJECT_LIGHT_DIST, &mstruct);
2035}
2036
2037/*
2038$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
SetMatCenPegToLevel0Function · 0.85
SetMatCenPegToLevel1Function · 0.85
SetMatCenPegToLevel2Function · 0.85
CallEventMethod · 0.85
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