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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nkmols' question
nkmol Offline
Senior Member

Posts: 252
Threads: 19
Joined: Feb 2011
Reputation: 4
#5
RE: Forge to look at object script

it worked Big Grin

maybe to improve it a lil bit more, is it possible to zoom in, like a shock effect?
ill look to play the shock sound of daniel by myself and reduce sanity


edited : got it worked now Big Grin i added the slow walking/looking and running to Big Grin it feels good that i found out some thing by my self, lol. really thanks for helping Big Grin code so far :
PHP Code: (Select All)
void Onstart()
{

}

void OnEnter()
{
AddEntityCollideCallback("Player""InsanityArea_1""AreaLookAt"true1);    
}

void AreaLookAt(string &in asParentstring &in asChildint alState)
{
    
StartPlayerLookAt("ritual_prisoner_1"22"");
    
AddTimer("Donelook"2.5f"TimerDoneLookAt"); 
    
PlaySoundAtEntity("player_shock""react_scare""Player"0false);
    
GiveSanityDamage(50true);
    
SetPlayerMoveSpeedMul(0.4f);
    
SetPlayerRunSpeedMul(0.4f);
    
SetPlayerLookSpeedMul(0.4f);
}

void TimerDoneLookAt(string &in asTimer)
{
    
StopPlayerLookAt();
    
SetPlayerMoveSpeedMul(1.0f);
    
SetPlayerRunSpeedMul(1.0f);
    
SetPlayerLookSpeedMul(1.0f);

(This post was last modified: 02-21-2011, 09:59 PM by nkmol.)
02-21-2011, 09:47 PM
Find


Messages In This Thread
Nkmols' question - by nkmol - 02-21-2011, 05:23 PM
RE: Forge to look at object script - by Mofo - 02-21-2011, 07:31 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:22 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 09:47 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 10:48 PM
RE: Forge to look at object script - by Ongka - 02-21-2011, 11:06 PM
RE: Forge to look at object script - by nkmol - 02-21-2011, 11:17 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 03:55 PM
RE: Forge to look at object script - by nkmol - 02-22-2011, 09:27 PM
RE: Nkmols' question - by nkmol - 02-22-2011, 10:40 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 04:55 PM
RE: Nkmols' question - by Tanshaydar - 02-23-2011, 07:16 PM
RE: Nkmols' question - by nkmol - 02-23-2011, 09:46 PM
RE: Nkmols' question - by nkmol - 02-24-2011, 10:46 PM
RE: Nkmols' question - by Linus Ågren - 02-24-2011, 10:48 PM
RE: Nkmols' question - by nkmol - 02-25-2011, 03:35 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 04:29 PM
RE: Nkmols' question - by Linus Ågren - 02-27-2011, 05:15 PM
RE: Nkmols' question - by Pandemoneus - 02-27-2011, 05:59 PM
RE: Nkmols' question - by nkmol - 02-27-2011, 06:25 PM
RE: Nkmols' question - by nkmol - 03-02-2011, 07:13 AM
RE: Nkmols' question - by nkmol - 03-03-2011, 05:21 PM
RE: Nkmols' question - by nkmol - 03-04-2011, 02:44 PM
RE: Nkmols' question - by nkmol - 03-06-2011, 06:51 PM
RE: Nkmols' question - by nkmol - 03-08-2011, 06:25 PM



Users browsing this thread: 1 Guest(s)