The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Pick up an key scare event and Black Fog
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#1
Pick up an key scare event and Black Fog

PHP Code: (Select All)
SetEntityPlayerInteractCallback("Key_1""HammerScare"true);
    
AddUseItemCallback("""Key_1""mansion_1""UsedKeyOnDoor"true);
}

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntity,false,true);
    
PlaySoundAtEntity("","unlock_door"asEntity0false);
    
RemoveItem(asItem);
}

void HammerScare() {
    
AddPropForce("sledge_1"99000"world");
    


So, how do i make it when you pick up a key. It activates my scare event.


And how do i make black fog. I remember in a custom map, that they have black fog. I also remember it in Amensia where you go into the cellar near the chain room (with the wierd torch)

Rep if like me or im helpful or you love my stories!
Stephanos house
(This post was last modified: 08-19-2011, 08:06 AM by Gamemakingdude.)
08-19-2011, 08:00 AM
Find


Messages In This Thread
Pick up an key scare event and Black Fog - by Gamemakingdude - 08-19-2011, 08:00 AM



Users browsing this thread: 1 Guest(s)