$$QUERY Objects b:[o:Object=IT] is a player qObjIsPlayer Is this object a player? Determines if the specified object is a player Parameters: Object: The object to check $$END */
| 5205 | $$END |
| 5206 | */ |
| 5207 | bool qObjIsPlayer(int objref) { |
| 5208 | msafe_struct mstruct; |
| 5209 | |
| 5210 | mstruct.objhandle = objref; |
| 5211 | |
| 5212 | MSafe_GetValue(MSAFE_OBJECT_TYPE, &mstruct); |
| 5213 | |
| 5214 | return (mstruct.type == OBJ_PLAYER); |
| 5215 | } |
| 5216 | |
| 5217 | /* |
| 5218 | $$QUERY |
no outgoing calls
no test coverage detected