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

Function aTogglePlayerObjControl

scripts/DallasFuncs.cpp:5815–5823  ·  view source on GitHub ↗

$$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 */

Source from the content-addressed store, hash-verified

5813$$END
5814*/
5815void 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

Callers 3

ConfineTargetMethod · 0.85
ReleaseTargetMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected