Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminal Computers from Penumbra Black Plague
SwingsDarkCreeps Offline
Junior Member

Posts: 26
Threads: 3
Joined: Jun 2015
Reputation: 0
#6
RE: Terminal Computers from Penumbra Black Plague

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 matterSmile)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 worksBig Grin;so practically I disabled (the Player's) Jump;
RunSpeed;
MoveSpeed;
Crouch.
and leaving just LookSpeedMul to a low value;Smile
ok, but this was quite easy.
07-30-2015, 02:02 PM
Find


Messages In This Thread
RE: Terminal Computers from Penumbra Black Plague - by SwingsDarkCreeps - 07-30-2015, 02:02 PM



Users browsing this thread: 1 Guest(s)