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", true, 0);
AddUseItemCallback("", "Hammer", "Woodenblock", "OpenDoor", true);
}

void BreakWall(string &in asParent, string &in asChild, string &in alState)
{
SetPropHealth("mansionbase_secret_passage_1", 0);
}

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

void ScreenShake(string &in asEntity)
{
StartScreenShake(0.4, 0.4, 3, 2.6);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.0f, false);
}

void OpenDoor(string &in asItem, string &in asEntity)
{
    
SetSwingDoorLocked("WoodenBlock", false, true);
    
PlaySoundAtEntity("", "unlock_door", "WoodenBlock", 0, false);
    
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)