$$ACTION Players [e:Enable/Disable] player controls [g:PlayerControl] for [o:PlayerObject] aTogglePlayerObjControl TogglePlayerControl Sets a players control either disabled or enabled Parameters: Object: The player object PlayerObject: The player this affects Enable/Disable: Whether to Enable or Disable the specified controls $$END */
| 5813 | $$END |
| 5814 | */ |
| 5815 | void aTogglePlayerObjControl(int enable, int controlmask, int objhandle) { |
| 5816 | msafe_struct mstruct; |
| 5817 | |
| 5818 | mstruct.objhandle = objhandle; |
| 5819 | mstruct.control_mask = controlmask; |
| 5820 | mstruct.control_val = enable; |
| 5821 | |
| 5822 | MSafe_CallFunction(MSAFE_OBJECT_PLAYER_CMASK, &mstruct); |
| 5823 | } |
| 5824 | |
| 5825 | /* |
| 5826 | $$ACTION |
no outgoing calls
no test coverage detected