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
Script Help Grab entities
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Grab entities

Is it possible to grab and rotate entities via script?
08-21-2012, 09:46 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Grab entities

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

Tutorials: From Noob to Pro
(This post was last modified: 08-21-2012, 10:14 PM by Your Computer.)
08-21-2012, 10:14 PM
Website Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#3
RE: Grab entities

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.
08-21-2012, 10:22 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Grab entities

(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.

Tutorials: From Noob to Pro
08-21-2012, 10:31 PM
Website Find
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#5
RE: Grab entities

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.
08-21-2012, 10:37 PM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#6
RE: Grab entities

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 post was last modified: 08-21-2012, 11:09 PM by ooadrianoo.)
08-21-2012, 10:43 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Grab entities

(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?

Tutorials: From Noob to Pro
08-22-2012, 12:05 AM
Website Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#8
RE: Grab entities

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)
08-22-2012, 07:56 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: Grab entities

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.

Trying is the first step to success.
08-22-2012, 08:00 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#10
RE: Grab entities

(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.

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.
08-22-2012, 08:01 PM
Website Find




Users browsing this thread: 1 Guest(s)