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
Script Help Dont understand this
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#11
RE: Dont understand this

Sure Smile
PHP Code: (Select All)
void OnStart()

{
SetEntityConnectionStateChangeCallback("lever""func_shelf");
SetEntityPlayerInteractCallback("Note_Test3""ScreenShake"true);
AddEntityCollideCallback("armchair_1""mansionbase_secret_passage_1""BreakWall"true0);
AddUseItemCallback("""Hammer""Woodenblock""OpenDoor"true);
}

void BreakWall(string &in asParentstring &in asChildstring &in alState)
{
SetPropHealth("mansionbase_secret_passage_1"0);
}

void func_shelf(string &in asEntityint alState)
{
    if (
alState == 1)
    {
    
SetMoveObjectState("shelf",1.0f);
    
PlaySoundAtEntity("""quest_completed.snt""shelf_move_1"0false); }
}
 
void StopTimer(string &in asTimer)
 {
  
StopPlayerLookAt();
 }
 
 
void PickNote(string &in asEntity)
{
    
StartPlayerLookAt("closet_1"5.0f5.0f"");
    
AddTimer("StopLookAt"1.5f"StopTimer");
    
PlaySoundAtEntity("""react_breath.snt""Player"0.0ffalse);
}

void ScreenShake(string &in asEntity)
{
StartScreenShake(0.40.432.6);
PlaySoundAtEntity("""explosion_rock_large.snt""Player"0.0ffalse);
}

void OpenDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("WoodenBlock"falsetrue);
    
PlaySoundAtEntity("""unlock_door""WoodenBlock"0false);
    
RemoveItem("Hammer");


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
01-06-2012, 08:57 PM
Website Find


Messages In This Thread
Dont understand this - by jessehmusic - 01-06-2012, 08:23 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 08:24 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 08:28 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 08:30 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 08:31 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 08:34 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 08:40 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 08:43 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 08:54 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 08:55 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 08:57 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 09:02 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 09:03 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 09:04 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 09:11 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 09:14 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 09:33 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 09:38 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 10:06 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 10:08 PM
RE: Dont understand this - by jessehmusic - 01-06-2012, 10:17 PM
RE: Dont understand this - by SilentStriker - 01-06-2012, 10:17 PM



Users browsing this thread: 1 Guest(s)