This object"level00_computer_terminal" -is not a interactable object , so I decided to use /SetEntityPlayerInteractCallback/ but using an area;
I made this!:
void OnStart()
{
SetEntityPlayerInteractCallback("AreaComputer", "ComputerFunction", true);//this is when Player interact with the specific Area which include the terminal computer function;
SetEntityPlayerInteractCallback("AreaIcon1", "InteractIcon1", true);//this is after the player was teleported to "position1" and attempting to interact(to click-but there is no cursor so he use the hand but no matter
)with icon1 from desktop;
}
void ComputerFunction(string &in asEntity)
{
TeleportPlayer("Position_1");
FadeOut(2.0f);
FadeIn(3.0f);
SetPlayerMoveSpeedMul(0.0f);
SetPlayerRunSpeedMul(0.0);
SetPlayerLookSpeedMul(0.3);
SetPlayerJumpDisabled(true);
SetPlayerCrouchDisabled(true);
}
void InteractIcon1(string &in asEntity)
{
TeleportPlayer("Position_2");
SetPlayerMoveSpeedMul(0.0f);
SetPlayerRunSpeedMul(0.0);
SetPlayerLookSpeedMul(0.3);
SetPlayerJumpDisabled(true);
SetPlayerCrouchDisabled(true);
}
It works
;so practically I disabled (the Player's) Jump;
RunSpeed;
MoveSpeed;
Crouch.
and leaving just LookSpeedMul to a low value;
ok, but this was quite easy.