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
Multiple Issues Help Change rotating angle?
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#1
Change rotating angle?

So, I've been using this tutorial to make a hidden shelf using a lever and everything works fine and all, but the shelf goes in "wrong" direction. Does anyone know how to change the direction?

This is how it looks like:

[Image: fRt3FWD.jpg]
02-05-2013, 05:41 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Change rotating angle?

Use this script:

SetMoveObjectStateExt(string& asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed);


This means:

SeMoveObjectState("shelf_1", -1, 1, 1, 1, true);

Is normally 1 or 0, but try using -1 so it rotates in another direction.

If it doesn't work, go to the model editor and open the .ent file of the shelf. Go to OpenAmount and play with the values until it makes the appropiate effect-I'd reccomend -90, as it seems to be rotating the opposite direction.
Then, save it as ANOTHER .ENT in a folder in your entities folder. This folder should have the name of your story: When going to release it, put the entity in Yourstory<Entities.

Hope it helped! Smile

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-05-2013, 06:11 PM
Find
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#3
RE: Change rotating angle?

Where can I find 'OpenAmount'?
02-05-2013, 07:25 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Change rotating angle?

In the Settings<UserDefinedVariables.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-05-2013, 07:47 PM
Find
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#5
RE: Change rotating angle?

Ok, I've changed it's values in ModelEditor and placed in a entities-folder in my cs-folder, but how do I get it into LevelEditor?
02-05-2013, 07:56 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Change rotating angle?

(02-05-2013, 07:56 PM)Tigerwaw Wrote: Ok, I've changed it's values in ModelEditor and placed in a entities-folder in my cs-folder, but how do I get it into LevelEditor?

Tigerwaw pls:

I meant an entity folder in the game itself, not in the CS folder: This is when you are going to release it.

Just:

LevelEditor:
Entities<Folderwhereyourentityis<yourentity

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
02-05-2013, 08:01 PM
Find
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#7
RE: Change rotating angle?

oh...Well, that makes sense...

EDIT: I changed it to -1(-90) and now it just dissappears. It seems like it's not possible to change it like that :c
(This post was last modified: 02-05-2013, 08:53 PM by Tiger.)
02-05-2013, 08:06 PM
Find




Users browsing this thread: 1 Guest(s)