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
How to breath heavily
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#7
RE: How to breath heavily

(06-24-2012, 07:13 AM)Mooserider Wrote: You didn't merge the new script with your current one, and you also didn't add the BreathTimer script Wink
Instead of

PHP Code: (Select All)
void OnStart()

void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_3""PlayerInBreathArea"false0);
}
void PlayerInBreathArea(string &in asParentstring &in asChildint alState)
{
if (
alState == 1)
{
PlaySoundAtEntity("""react_breath_slow.snt""Player"0.0ffalse);
AddTimer("BreathTimer"2.0f"BreathTimer");
}

else
{
RemoveTimer("BreathTimer");
}
}

{
ShowEnemyPlayerPosition("Grunty1");
AddUseItemCallback("""Key_1""castle_1""KeyOnDoor"true);
AddEntityCollideCallback("Player""ScriptArea_1""CloseDoorFunc"true1);
AddEntityCollideCallback("Player""ScriptArea_2""CloseDoorFunc2"true1);


have

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""ScriptArea_3""PlayerInBreathArea"false0);
    
ShowEnemyPlayerPosition("Grunty1");
    
AddUseItemCallback("""Key_1""castle_1""KeyOnDoor"true);
    
AddEntityCollideCallback("Player""ScriptArea_1""CloseDoorFunc"true1);
    
AddEntityCollideCallback("Player""ScriptArea_2""CloseDoorFunc2"true1);
}
void PlayerInBreathArea(string &in asParentstring &in asChildint alState)
{
    if (
alState == 1)
    {
        
PlaySoundAtEntity("""react_breath_slow.snt""Player"0.0ffalse);
        
AddTimer("BreathTimer"2.0f"BreathTimer");
    }

    else
    {
    
RemoveTimer("BreathTimer");
    }
}
void BreathTimer(string &in asTimer)
{
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0.0ffalse);
    
AddTimer("BreathTimer"2.0f"BreathTimer"); 


To explain the problem - you pasted the whole script I wrote instead of just putting the lines from my OnStart into your OnStart.
GL with the story Smile
Now my key wont open a door, the door wont close behind me anymore -.- VAFAN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Special Custom Story for 2 special people!

[Image: LWFcAl]


06-24-2012, 07:18 AM
Find


Messages In This Thread
How to breath heavily - by Jagsrs28 - 06-24-2012, 05:39 AM
RE: How to breath heavily - by Mooserider - 06-24-2012, 06:28 AM
RE: How to breath heavily - by Jagsrs28 - 06-24-2012, 06:43 AM
RE: How to breath heavily - by Mooserider - 06-24-2012, 06:48 AM
RE: How to breath heavily - by Jagsrs28 - 06-24-2012, 06:53 AM
RE: How to breath heavily - by Mooserider - 06-24-2012, 07:13 AM
RE: How to breath heavily - by Jagsrs28 - 06-24-2012, 07:18 AM
RE: How to breath heavily - by Mooserider - 06-24-2012, 09:30 AM



Users browsing this thread: 1 Guest(s)