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
what do i need to do...
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#4
RE: what do i need to do...

thanks Big Grin but it keep saying error end of file or something ? my script
PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("", "Cellar", "CellarDoor", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Mes", "Barrel", "Killperson", true); 
PlayMusic("Kasteel", true, 0.7f, 1, 0, false);
}


void MoveWall(string &in asEntity, int alState) 
{
    if (
alState == -1)
    {
        
SetMoveObjectState("MoveWall", 1);
        
SetLeverStuckState("secretlever", -1, false);
        
PlaySoundAtEntity("", "quest_completed.snt", "MoveWall", 0, false);
                
StopMusic(5, 1);
                
PlayMusic("Outside", true, 0.7f, 1, 0, false);
                
SetPlayerMoveSpeedMul(0.5)

    }

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("CellarDoor", false); 
PlaySoundAtEntity("", "unlock_door.snt", "CellarDoor", 0, false);
RemoveItem("Cellar");
} 

void BarrelCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "break_wood.snt", "Barrel", 0.5f, false);
SetPropHealth("Barrel", 0);
}

void Killperson(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "19_inject.snt", "Player", 0, false);
CreateParticleSystemAtEntity("", "ps_blood_tiny_splash.ps", "Barrel", false);
SetEntityActive("secretlever", true);
} 
08-21-2014, 05:12 PM
Find


Messages In This Thread
what do i need to do... - by Amnesiaplayer - 08-21-2014, 04:55 PM
RE: what do i need to do... - by CarnivorousJelly - 08-21-2014, 05:05 PM
RE: what do i need to do... - by Amnesiaplayer - 08-21-2014, 05:12 PM
RE: what do i need to do... - by Neelke - 08-21-2014, 05:06 PM
RE: what do i need to do... - by Neelke - 08-21-2014, 05:15 PM
RE: what do i need to do... - by Amnesiaplayer - 08-21-2014, 05:24 PM



Users browsing this thread: 1 Guest(s)