| 
		
	
		| ooadrianoo   Member
 
 Posts: 82
 Threads: 29
 Joined: Apr 2012
 Reputation: 
0
 | 
			| Grab entities 
 
				Is it possible to grab and rotate entities via script?
			 |  |  
	| 08-21-2012, 09:46 PM |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| 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.
			 
 
				
(This post was last modified: 08-21-2012, 10:14 PM by Your Computer.)
 |  |  
	| 08-21-2012, 10:14 PM |  |  
	
		| ooadrianoo   Member
 
 Posts: 82
 Threads: 29
 Joined: Apr 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| 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.
			 
 |  |  
	| 08-21-2012, 10:31 PM |  |  
	
		| Ongka   Member
 
 Posts: 225
 Threads: 3
 Joined: Nov 2010
 Reputation: 
20
 | 
			| RE: Grab entities 
 
				Entities -> obstacles -> mb_window_noglassEntities -> 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 |  |  
	
		| ooadrianoo   Member
 
 Posts: 82
 Threads: 29
 Joined: Apr 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| 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?
			 
 |  |  
	| 08-22-2012, 12:05 AM |  |  
	
		| ooadrianoo   Member
 
 Posts: 82
 Threads: 29
 Joined: Apr 2012
 Reputation: 
0
 | 
			| 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 |  |  
	
		| FlawlessHappiness   Posting Freak
 
 Posts: 3,980
 Threads: 145
 Joined: Mar 2012
 Reputation: 
171
 | 
			| 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 |  |  
	
		| Robby   Posting Freak
 
 Posts: 2,549
 Threads: 38
 Joined: Jun 2009
 Reputation: 
47
 | 
			| 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:  But I don't want do this without a script. (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.
 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 |  |  |