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
big Barrel ?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
big Barrel ?

How can i break a big barrel with an dagger ?!
i tried somethings but it didn't worked.
my script
PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("", "Cellar", "Cellar", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Mes", "Barrel", "BarrelCreak", true, 1);
}


void MoveWall(string &in asEntity, int alState) 
{
    if (
alState == -1)
    {
        
SetMoveObjectState("MoveWall", 1);
        
SetLeverStuckState("secretlever", -1, false);
        
PlaySoundAtEntity("", "quest_completed.snt", "MoveWall", 0, false);
    }

SetLevelDoorLocked("Cellar", false); 
PlaySoundAtEntity("", "unlock_door.snt", "Cellar", 0, false);
RemoveItem("Cellar");
} 

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

i want that the barrel breaks. ( there is a lever inside the barrel )
so i can pull the lever and a wall is going to above...
and i got 1 question to about that thing... outside making custom background you need to... convert an image into a 6 Block things... i really forgot the name! i want to do some backgrounds Big Grin
08-20-2014, 05:33 PM
Find
burge4150 Offline
Member

Posts: 56
Threads: 15
Joined: Feb 2014
Reputation: 0
#2
RE: big Barrel ?

Does anything happen? Does the sound effect play? Do you get a "you cant use this item in this way" message?

Edit: Your callback doesn't support using an item on the barrel to break it. How do you want the player to break the barrel?
(This post was last modified: 08-20-2014, 05:53 PM by burge4150.)
08-20-2014, 05:52 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#3
RE: big Barrel ?

yes i get that message and it doesn't matter how but if it works... i will be cool :S i don't know the script if you know can you show me ?!
but what i want is to break it with a dagger... Big Grin
08-20-2014, 05:56 PM
Find
burge4150 Offline
Member

Posts: 56
Threads: 15
Joined: Feb 2014
Reputation: 0
#4
RE: big Barrel ?

I'm not good enough to write script without an editor in front of me to double check syntax. I'll help ya with it when I get home tonight.

Real quick though, can someone verify that a barrel is indeed a breakable entity in the first place?
08-20-2014, 06:11 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#5
RE: big Barrel ?

there are barrel pieces but i saw on some custom stories exploding barrels...

i'm not gonna do the barrel but a prisoner.. or that person... that i knife goes into him... and a leve *sticks* out... how can i do this ??
(This post was last modified: 08-20-2014, 06:43 PM by Amnesiaplayer.)
08-20-2014, 06:13 PM
Find




Users browsing this thread: 1 Guest(s)