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
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Pick up an key scare event and Black Fog

void KeyName(string &in entity, string &in type)
{
  
}

For your key, go to the Entity Tab in the property menu on the right side. In "CallbackFunc" put something in their, it must match the name in the function above (i.e. Keyname).


I believe your looking for FogAreas (Hotkey = Ctrl+1) on the left side pane.
08-19-2011, 04:19 PM
Find




Users browsing this thread: 1 Guest(s)