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
adding animation to a path node help
lothabread Offline
Member

Posts: 106
Threads: 11
Joined: Apr 2012
Reputation: 2
#3
RE: manpig wont move

Fixed it Big Grin, now i just needa fix some audio issues.

PHP Code: (Select All)
////////////////////////////
// Run when starting game
//Debug
//////////////////////////////////////////////////////////////////////////////////////////////////////
void OnStart()
{
    if(
ScriptDebugOn())
          {
               
GiveItemFromFile("lantern""lantern.ent");
               
SetPlayerLampOil(100.0f);
 
               for(
int i 0;10;i++)
               {
                    
GiveItemFromFile("tinderbox""tinderbox.ent");
               }
          }
    
SetSanityDrainDisabled(true);

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//set up
////////////////////////////////////////////////////////////////////////////////////////////////////
    
AddEntityCollideCallback("pigknife" "pigcut""givepigkey"true1);
    
AddEntityCollideCallback("Player" "activatepiggy""hideMann"true1);
    
AddEntityCollideCallback("engineer_1" "disableflappers""hideflap"true, -1);
    
AddEntityCollideCallback("engineer_1" "enableflappers""showflap"true1);
    
AddEntityCollideCallback("engineer_1" "byepiggy""disablepig"true1);
////////////////////////////////////////////////////////////////////////////////////////////////////
}

////////////////////////////////////////////////////////////////////////////////////////////////////
// Run when entering map
////////////////////////////////////////////////////////////////////////////////////////////////////
void OnEnter()
{

}
/////////////////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////////////////
//General
/////////////////////////////////////////////////////////////////////////////////////////////////////
void givepigkey(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("pigkeys"true);
    
    
PlaySoundAtEntity("""PigCut.snt""Player"0false);
    
PlaySoundAtEntity("""engineer_merge.snt""dangerpig"0false);
}

void hideMann(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("engineer_1"true);
    
    
PlaySoundAtEntity("""door_level_wood_open.snt""level_cellar_wood01_1"0false);
    
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_1"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_5"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_10"0.0f"");
}

void hideflap(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("enableflappers"true);
    
SetEntityActive("byepiggy"true);
    
    
SetEntityActive("plastic_curtains_silent_1"false);
    
SetEntityActive("plastic_curtains_silent_2"false);
    
SetEntityActive("plastic_curtains_silent_3"false);
    
SetEntityActive("plastic_curtains_silent_4"false);
    
SetEntityActive("plastic_curtains_silent_5"false);
    
SetEntityActive("plastic_curtains_silent_6"false);
    
SetEntityActive("plastic_curtains_silent_7"false);
    
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_10"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_5"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_11"0.0f"");
}

void showflap(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("plastic_curtains_silent_1"true);
    
SetEntityActive("plastic_curtains_silent_2"true);
    
SetEntityActive("plastic_curtains_silent_3"true);
    
SetEntityActive("plastic_curtains_silent_4"true);
    
SetEntityActive("plastic_curtains_silent_5"true);
    
SetEntityActive("plastic_curtains_silent_6"true);
    
SetEntityActive("plastic_curtains_silent_7"true);
}

void disablepig(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("engineer_1"false);
    
    
PlaySoundAtEntity("""door_level_wood_close.snt""level_cellar_wood01_1"0false);


mainly i want to raise "pigcut" audio and "engineer_merge.snt" wont play at all, that along with the curtains not disabling when the engineer walks into the specified area.
(This post was last modified: 04-14-2014, 09:25 PM by lothabread.)
04-14-2014, 09:07 PM
Find


Messages In This Thread
RE: manpig wont move - by RaideX - 04-14-2014, 08:31 PM
RE: manpig wont move - by lothabread - 04-14-2014, 09:07 PM



Users browsing this thread: 2 Guest(s)