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

Function qObjEnergy

scripts/DallasFuncs.cpp:5629–5637  ·  view source on GitHub ↗

$$QUERY Objects f:Object [o:Object] energy qObjEnergy Get an object's energy Gets an object's energy Parameters: Object: the object whose energy are being queried $$END */

Source from the content-addressed store, hash-verified

5627$$END
5628*/
5629float qObjEnergy(int objref) {
5630 msafe_struct mstruct;
5631
5632 mstruct.objhandle = objref;
5633
5634 MSafe_GetValue(MSAFE_OBJECT_ENERGY, &mstruct);
5635
5636 return mstruct.energy;
5637}
5638
5639/*
5640$$QUERY

Callers 2

DoNotifyMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected