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
Need help fast please!
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#1
Need help fast please!

So I've been working on a new custom story lately, and in one part you're supposed to walk over a beam. I placed an area in the middle of the beam that is supposed to trigger a function where the beam breaks and you fall into a hole. Now there are two problems when I'm playing the custom story:

1. When I have my crosshair on the beem where the area is placed it changes to a door, as if you were looking at a level door (the area type is script).

2. The beam doesn't break.. Sad Here's the script for the beam part:

void OnStart()
{
AddEntityCollideCallback("Player", "BeamBreakArea", "BeamBreak", true, 1);
}


void BeamBreak(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("wood_beam_1", 0);
SetEntityActive("block_box_3", true);
}


Please help me! Sad
10-19-2012, 06:45 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Need help fast please!

Can the beam even break? is it a breakable entity or is it a static object?

10-19-2012, 07:03 PM
Find
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#3
RE: Need help fast please!

(10-19-2012, 07:03 PM)SilentStriker Wrote: Can the beam even break? is it a breakable entity or is it a static object?
It is a breakable entity Smile
10-19-2012, 07:29 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: Need help fast please!

Make sure "DisableBreakable" in the Editor (for the entity itself) is disabled. Names are correct?

If you created the script file while the map was loaded in Amnesia, restart Amnesia.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
10-19-2012, 07:30 PM
Website Find
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#5
RE: Need help fast please!

(10-19-2012, 07:30 PM)Nemet Robert Wrote: Make sure "DisableBreakable" in the Editor (for the entity itself) is disabled. Names are correct?

If you created the script file while the map was loaded in Amnesia, restart Amnesia.
It is disabled and all the names are right.. Sad
10-19-2012, 07:38 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#6
RE: Need help fast please!

That's an oddity, then. Maybe try with a different "wooden beam" entity? Maybe the one you're trying to use is unbreakable by default. I think "special" is where you can try and look.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
10-19-2012, 07:39 PM
Website Find
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#7
RE: Need help fast please!

(10-19-2012, 07:39 PM)Nemet Robert Wrote: That's an oddity, then. Maybe try with a different "wooden beam" entity? Maybe the one you're trying to use is unbreakable by default. I think "special" is where you can try and look.
I tried looking in "special" but I didn't find anything.. :/ I tried to use a wooden platform instead of the beam but that didn't work either.. Sad
10-19-2012, 07:47 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: Need help fast please!

Look at the model editor and take a look. Look at it's values and properties. Maybe there's the key.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-19-2012, 08:10 PM
Find
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#9
RE: Need help fast please!

(10-19-2012, 08:10 PM)The chaser Wrote: Look at the model editor and take a look. Look at it's values and properties. Maybe there's the key.
What excactly am I supposed to look for in the model editor? Smile
10-20-2012, 10:44 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: Need help fast please!

you know if it can't break by setting the health to 0, then it will never break i guess.. Unless you pretend to by playing some sounds, using some particle effects and sets it inactive.

If you are using the hole from the prison, then you will have to know that that is actually a level door. I had the same problem with that one... Didn't know where the level door game from...

Trying is the first step to success.
10-20-2012, 10:47 PM
Find




Users browsing this thread: 1 Guest(s)