Radical Batz 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 953 
	Threads: 145 
	Joined: Dec 2013
	
 Reputation: 
25
		
	 | 
	
		
			
How do you make an object move in 3 directions? 
			 
			
				I have a custom move object which is a pillar mechanism of some sorts and how this mechanism works is by simply pulling a lever, and the mechanism comes forward to a platform, then goes back far to the other platform and then comes back to its place. 
Is this possible? I never worked with move objects before.  
But is there any ideas? 
is there a way and is it possible?
  
			 
			
			
 
			
				
(This post was last modified: 05-03-2015, 06:19 AM by Radical Batz.)
 
				
			 
		 |  
	 
 | 
 
	| 05-03-2015, 06:17 AM  | 
	
		
	 | 
 
 
	
		
		DnALANGE 
 
 
		
			Banned 
			
			
			
 
			
	Posts: 1,549 
	Threads: 73 
	Joined: Jan 2012
	
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				Easyest way imo could be; 
Create 2 entyties and copy them in your mod. 
Change the names for example to; 
Your_Entitie_1 
Your_Entitie_2 
 
Open the modeleditor and go for the User Defined Variables and change the values there. 
The "MoveAxis" and the "open ammount" are the ones you should check. 
Good luck, testing and testing it. 
That is how making games\mods work.
			 
			
			
			
		 |  
	 
 | 
 
	| 05-03-2015, 09:32 AM  | 
	
		
	 | 
 
 
	
		
		MrBehemoth 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 408 
	Threads: 19 
	Joined: Feb 2014
	
 Reputation: 
40
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				Or just use SetEntityPos() on a static entity and move it programmatically.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 05-03-2015, 05:15 PM  | 
	
		
	 | 
 
 
	
		
		Daemian 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,129 
	Threads: 42 
	Joined: Dec 2012
	
 Reputation: 
49
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				 (05-03-2015, 09:32 AM)DnALANGE Wrote:  Easyest way imo could be; 
Create 2 entyties and copy them in your mod. 
Change the names for example to; 
Your_Entitie_1 
Your_Entitie_2 
 
Open the modeleditor and go for the User Defined Variables and change the values there. 
The "MoveAxis" and the "open ammount" are the ones you should check. 
Good luck, testing and testing it. 
That is how making games\mods work. 
And use  SetMoveObjectState(string& asName, float afState); to make it move.
			  
			
			
 
			
		 |  
	 
 | 
 
	| 05-03-2015, 07:29 PM  | 
	
		
	 | 
 
 
	
		
		Mudbill 
 
 
		
			Muderator 
			
			
			
 
			
	Posts: 3,881 
	Threads: 59 
	Joined: Apr 2013
	
 Reputation: 
179
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				SetEntityPos is probably the better way than SetMoveObjectState, because it's limited to one axis per entity. Never thought of SetEntityPos but then again I haven't done much scripting in 1.3 unfortunately.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 05-03-2015, 08:17 PM  | 
	
		
	 | 
 
 
	
		
		Amnesiaplayer 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 539 
	Threads: 105 
	Joined: Jun 2014
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				 (05-03-2015, 08:17 PM)Mudbill Wrote:  SetEntityPos is probably the better way than SetMoveObjectState, because it's limited to one axis per entity. Never thought of SetEntityPos but then again I haven't done much scripting in 1.3 unfortunately. 
But can I like, move something, instead of rotating?! like, with setmoveobject, can I make a hand, move Down...
			  
			
			
			
		 |  
	 
 | 
 
	| 05-03-2015, 09:04 PM  | 
	
		
	 | 
 
 
	
		
		Mudbill 
 
 
		
			Muderator 
			
			
			
 
			
	Posts: 3,881 
	Threads: 59 
	Joined: Apr 2013
	
 Reputation: 
179
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				A hand? Well, I don't think SetEntityPos rotates it to begin with. So yes, if I understand you correctly.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 05-03-2015, 09:08 PM  | 
	
		
	 | 
 
 
	
		
		Amnesiaplayer 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 539 
	Threads: 105 
	Joined: Jun 2014
	
 Reputation: 
0
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				 (05-03-2015, 09:08 PM)Mudbill Wrote:  A hand? Well, I don't think SetEntityPos rotates it to begin with. So yes, if I understand you correctly. 
Yeah, a hand, my idea is weird I know. 
But my idea was like, there is a hand, and a head And then that those 2 entities just "go down" the water/sand. so it looks like the vines/quicksand got him   
			 
			
			
			
		 |  
	 
 | 
 
	| 05-03-2015, 09:18 PM  | 
	
		
	 | 
 
 
	
		
		Radical Batz 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 953 
	Threads: 145 
	Joined: Dec 2013
	
 Reputation: 
25
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				Having an issue here, it keeps going up, The moveaxis is currently on z in the entity and idk what the open ammount does but this is also the script! 
 
 
void letsgo(string &in asEntity, int alState) 
{ 
	if(alState == -1) 
	SetMoveObjectState("Badcat_elevator_2", 1); 
	 
	 
	AutoSave(); 
} 
 
 
Any ideas?
			 
			
			
 
			
				
(This post was last modified: 05-03-2015, 10:18 PM by Radical Batz.)
 
				
			 
		 |  
	 
 | 
 
	| 05-03-2015, 09:58 PM  | 
	
		
	 | 
 
 
	
		
		Romulator 
 
 
		
			Not Tech Support ;-) 
			
			
			
 
			
	Posts: 3,628 
	Threads: 63 
	Joined: Jan 2013
	
 Reputation: 
195
		
	 | 
	
		
			
RE: How do you make an object move in 3 directions? 
			 
			
				Where you want it to stop, place a script area, add a collide callback, and stop your object from moving when it collides with the script area.
			 
			
			
 
Discord: Romulator#0001
![[Image: 3f6f01a904.png]](https://puu.sh/zOxJg/3f6f01a904.png)  
			
				
(This post was last modified: 05-04-2015, 07:59 AM by Romulator.)
 
				
			 
		 |  
	 
 | 
 
	| 05-04-2015, 07:59 AM  | 
	
		
	 | 
 
 
	 
 |