04-21-2012, 12:36 PM
Hey Forum People!
Today, when I was trying to program a bookshelf moving I encountered some weird problems:
1. The bookshelf was moving instantly using this script: SetMoveObjectState("shelf_ftw",1.0f); and moving it around a joint.
But since I want it to open the other way, I set 1.0f to -1.0f and it doesn't move at all. What could be the problem?
2. How do I make the books in my bookshelf join the bookshelf when it's turning, since I can't seem to move a compound?
3. I'm trying to rotate an entity 360 degrees in the Y-axis at the same time, but I think I'm using the wrong function:
RotatePropToSpeed("My_Entity", 0.5, 0.75, 0.0, 360.0, 0.0, true, "");
How could I spin entities an other way?
All the best,
//Twitchez
Today, when I was trying to program a bookshelf moving I encountered some weird problems:
1. The bookshelf was moving instantly using this script: SetMoveObjectState("shelf_ftw",1.0f); and moving it around a joint.
But since I want it to open the other way, I set 1.0f to -1.0f and it doesn't move at all. What could be the problem?
2. How do I make the books in my bookshelf join the bookshelf when it's turning, since I can't seem to move a compound?
3. I'm trying to rotate an entity 360 degrees in the Y-axis at the same time, but I think I'm using the wrong function:
RotatePropToSpeed("My_Entity", 0.5, 0.75, 0.0, 360.0, 0.0, true, "");
How could I spin entities an other way?
All the best,
//Twitchez