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

Function qObjectCloakTime

scripts/DallasFuncs.cpp:4850–4858  ·  view source on GitHub ↗

$$QUERY Objects f:[o:Object] cloak time left qObjectCloakTime Parameters: Object: object to get cloak time left (0 if it's not cloaked) $$END */

Source from the content-addressed store, hash-verified

4848$$END
4849*/
4850float qObjectCloakTime(int Object) {
4851 msafe_struct mstruct;
4852 mstruct.objhandle = Object;
4853 mstruct.state = 0;
4854 mstruct.lifetime = 0;
4855 MSafe_GetValue(MSAFE_OBJECT_CLOAK, &mstruct);
4856
4857 return (mstruct.state) ? mstruct.lifetime : 0;
4858}
4859
4860/*
4861$$QUERY

Callers 3

ScanShotPathPositionFunction · 0.85
OkToPullMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected