$$QUERY Objects b:[o:Object] exists qObjExists Does this object exist? Determines if the specified object exists in the world Parameters: Object: The object to check $$END */
| 5183 | $$END |
| 5184 | */ |
| 5185 | bool qObjExists(int objref) { |
| 5186 | msafe_struct mstruct; |
| 5187 | |
| 5188 | mstruct.objhandle = objref; |
| 5189 | |
| 5190 | MSafe_GetValue(MSAFE_OBJECT_TYPE, &mstruct); |
| 5191 | |
| 5192 | return (mstruct.type != -1); |
| 5193 | } |
| 5194 | |
| 5195 | /* |
| 5196 | $$QUERY |
no outgoing calls
no test coverage detected