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

Posts: 106
Threads: 11
Joined: Apr 2012
Reputation: 2
#1
adding animation to a path node help

well im back Big Grin again. and umm i do believe i have my script set up perfectly fine for this but, could somebody maybe check it for me ? my engineer wont move after i walk into an area.

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);
////////////////////////////////////////////////////////////////////////////////////////////////////
}

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

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

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

void hideMann(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("engineer_1"true);
    
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_1"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_5"0.0f"");
    
AddEnemyPatrolNode("engineer_1""PathNodeArea_10"0.0f"");


all help is appreciated ^^

Oh and also how is it i would go about increasing the volume of a sound ? i tried changing the values in the .snt but that didnt seem to work.
(This post was last modified: 04-15-2014, 02:21 AM by lothabread.)
04-14-2014, 08:07 PM
Find


Messages In This Thread
adding animation to a path node help - by lothabread - 04-14-2014, 08:07 PM
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: 1 Guest(s)