Frictional Games Forum (read-only)
[SCRIPT] Grab entities - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Grab entities (/thread-17892.html)

Pages: 1 2


Grab entities - ooadrianoo - 08-21-2012

Is it possible to grab and rotate entities via script?


RE: Grab entities - Your Computer - 08-21-2012

Well, you could probably fake it with invisible ropes and out-of-view wheel entities, or create a prop animation. Otherwise, i doubt it.


RE: Grab entities - ooadrianoo - 08-21-2012

hmm Then I have to make ropes invisible by model editor...
I hope it will be different in hpl3.
I want to script, that the player takes a brick and destroy a window.
Otherwise he only jumps out.


RE: Grab entities - Your Computer - 08-21-2012

(08-21-2012, 10:22 PM)ooadrianoo Wrote: I want to script, that the player takes a brick and destroy a window.

That's different than what you were asking. This is can be done without a script. Certain entity types have the ability to "break" when an object with certain force is thrown at it.


RE: Grab entities - Ongka - 08-21-2012

Entities -> obstacles -> mb_window_noglass
Entities -> Special -> mansionbase_large_window_breakable

Combine these two and you can break the window by throwing things at it. It might be that you have to use bigger items than a brick, for example a chair.


RE: Grab entities - ooadrianoo - 08-21-2012

This is not the problem, it should be completely scriptet.

(08-21-2012, 10:31 PM)Your Computer Wrote:
(08-21-2012, 10:22 PM)ooadrianoo Wrote: I want to script, that the player takes a brick and destroy a window.

That's different than what you were asking. This is can be done without a script. Certain entity types have the ability to "break" when an object with certain force is thrown at it.
But I don't want do this without a script.


RE: Grab entities - Your Computer - 08-22-2012

(08-21-2012, 10:43 PM)ooadrianoo Wrote: But I don't want do this without a script.

But if the player is supposed to do it, why not have the player do it?


RE: Grab entities - ooadrianoo - 08-22-2012

It will be done completely in a script! The player hasn't got any controls.
The brick should be take up in a script, but I see it, it is not possible.

(Sorry for my bad language, I am from germany)


RE: Grab entities - FlawlessHappiness - 08-22-2012

How about:

*Standing in front of window*
SetPlayerActive(false);
Then put the brick on a blockbox.
Give the brick some AddPropForce
and remove the blockbox.


RE: Grab entities - Robby - 08-22-2012

(08-21-2012, 10:43 PM)ooadrianoo Wrote: This is not the problem, it should be completely scriptet.

(08-21-2012, 10:31 PM)Your Computer Wrote:
(08-21-2012, 10:22 PM)ooadrianoo Wrote: I want to script, that the player takes a brick and destroy a window.

That's different than what you were asking. This is can be done without a script. Certain entity types have the ability to "break" when an object with certain force is thrown at it.
But I don't want do this without a script.
This may seem hard for you, but without a script, it is a lot easier. Trust me.

But if you want to go for the script, then go for it! Nobody's holding you back.