Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making Caveins (debri)
sgthale Offline
Junior Member

Posts: 22
Threads: 13
Joined: Aug 2011
Reputation: 1
#1
Making Caveins (debri)

What function would you use to make it so a cavein happens? As in the debris static object starting from invisible goes to visible and blocks a path.

Forelorn
████████████ 42%
08-21-2011, 03:13 AM
Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#2
RE: Making Caveins (debri)

SetEntityActive function should work nicely

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
08-21-2011, 03:18 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#3
RE: Making Caveins (debri)

No. Sadly cavein is static item meaning that you cannot make it invisible and then visible. I had same problem in my own Ray of Hope custom story.

There are 2 solutions what you can do.
A) Use entities rocks, maybe scale them and have shit load of time and not guaranteed work.
B) (what I used) Go into custom model editor, edit the cavein into entity and then you can use as Selyp says, first set it invisible and then via that upper function set it visible. Worked perfectly for me Smile.

The Interrogation
Chapter 1

My tutorials
08-21-2011, 03:21 AM
Find
sgthale Offline
Junior Member

Posts: 22
Threads: 13
Joined: Aug 2011
Reputation: 1
#4
RE: Making Caveins (debri)

(08-21-2011, 03:18 AM)Selyp Wrote: SetEntityActive function should work nicely

How do you make the Debris prop start invisible?

I did

SetEntityActive("cavein",false);

To my Prop Static in the onStart() and it doesnt work
(08-21-2011, 03:21 AM)Elven Wrote: No. Sadly cavein is static item meaning that you cannot make it invisible and then visible. I had same problem in my own Ray of Hope custom story.

There are 2 solutions what you can do.
A) Use entities rocks, maybe scale them and have shit load of time and not guaranteed work.
B) (what I used) Go into custom model editor, edit the cavein into entity and then you can use as Selyp says, first set it invisible and then via that upper function set it visible. Worked perfectly for me Smile.

Where would I save the new .ent? Because If I was to distribute this story Id like it to be included with it :I
(This post was last modified: 08-21-2011, 03:27 AM by sgthale.)
08-21-2011, 03:21 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#5
RE: Making Caveins (debri)

First of all into your entities. What I did was that I went into my amnesia folder. Clicked entities and made there new folder called "editedStuff" and put that inside there. You HAVE TO do that to use it in ur own file. Of course you can save it into debris as well, but I do not recommend that way. Then you go into amnesia folder and then: custom_stories/Storyname/entities/editedStuff/yourfilename.ent
If we take that Storyname is your custom story name. This is must, because players need to have that fail as well. You need it for editing, players need it to view it Smile.

The Interrogation
Chapter 1

My tutorials
08-21-2011, 03:31 AM
Find
sgthale Offline
Junior Member

Posts: 22
Threads: 13
Joined: Aug 2011
Reputation: 1
#6
RE: Making Caveins (debri)

BAH it only included the model not the physics collision
08-21-2011, 03:52 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#7
RE: Making Caveins (debri)

I dont know how to help you more, sadly Sad. I am not that advanced yet neither. Started scripting from tuesday Smile-

The Interrogation
Chapter 1

My tutorials
08-21-2011, 03:54 AM
Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#8
RE: Making Caveins (debri)

Look in Entities > Special. There's "cave_in" and "cave_in_destroyed" which should work nicely.

08-21-2011, 04:01 AM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#9
RE: Making Caveins (debri)

Yea, there's both static and entity based cave-ins in the resources.
08-23-2011, 05:33 AM
Find




Users browsing this thread: 1 Guest(s)