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
Lever and Entity
Smackdown Offline
Junior Member

Posts: 13
Threads: 3
Joined: Jan 2013
Reputation: 0
#3
RE: Lever and Entity

Thank you very much.
All things work, except the sound. It does not play the explosion thing on player:

PHP Code: (Select All)
void explosion(string &in asEntityint alState)
{
  
//This checks what "state" the lever is in
  
if(alState == 1//1 is on, 0 is in between and -1 means off
  
{
        
PlaySoundAtEntity("""""player"0.5ffalse);
 
PlaySoundAtEntity("""explosion_rock_large.snt""player"0false);
    
GiveSanityBoostSmall();
    
SetEntityActive("wood_beam_2"false);
    
SetEntityActive("wood_beam_3"false);
    
SetEntityActive("wood_beam_4"false);
    
SetEntityActive("rock_debris_brown02_*"false);
    
SetEntityActive("stone_med01_brown_8"false);
    
SetEntityActive("stone_med01_brown_9"false);
    
SetEntityActive("stone_med01_brown_10"false);
    
SetEntityActive("stone_med01_brown_11"false);

  }


05-07-2013, 04:32 PM
Find


Messages In This Thread
Lever and Entity - by Smackdown - 05-07-2013, 03:45 PM
RE: Lever and Entity - by Tomato Cat - 05-07-2013, 04:04 PM
RE: Lever and Entity - by Smackdown - 05-07-2013, 04:32 PM
RE: Lever and Entity - by Tomato Cat - 05-07-2013, 04:41 PM
RE: Lever and Entity - by DnALANGE - 05-07-2013, 05:00 PM
RE: Lever and Entity - by Smackdown - 05-07-2013, 05:19 PM



Users browsing this thread: 1 Guest(s)