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
How do you make an object move in 3 directions?
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
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?

Huh

(This post was last modified: 05-03-2015, 06:19 AM by Radical Batz.)
05-03-2015, 06:17 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
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
Find
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#3
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
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
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
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
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
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#6
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
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#7
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
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#8
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 Wink
05-03-2015, 09:18 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#9
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
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#10
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]
(This post was last modified: 05-04-2015, 07:59 AM by Romulator.)
05-04-2015, 07:59 AM
Find




Users browsing this thread: 1 Guest(s)