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
Wind to blow out candles, and lever to open secret passage?
Enquea Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2010
Reputation: 0
#6
RE: Wind to blow out candles, and lever to open secret passage?

I'm trying to mimic the coding in the Old Archives hps file, but I'm having trouble with the actual rotate function. My code is give below...

void OnStart()
{

ConnectEntities("shelf_connection", "secret_lever", "secret_shelf", false, 1, "");
SetMoveObjectAngularOffsetArea("secret_shelf", "area_rotate");

}

I'll give the fatal error as well...

FATAL ERROR:
No matching signatures to 'SetMoveObjectAngularOffset(string@&, string@&)'
Ok, update time, I've gotten the shelf to move when I pull the lever...

However, rather than rotating like the shelf in the Old Archives it moves backwards...

void OnStart()
{

ConnectEntities("shelf_connection", "secret_lever", "secret_shelf", false, 1, "");

//SetMoveObjectAngularOffsetArea("secret_shelf", "area_rotate");

}

This is the code I used, I didn't use double slashes in the code before because I thought that it would comment out my SetMoveObject function...

I'll keep playing with it and see if I can get it to rotate rather than translate
(This post was last modified: 09-20-2010, 06:37 PM by Enquea.)
09-20-2010, 06:07 PM
Find


Messages In This Thread
RE: Wind to blow out candles, and lever to open secret passage? - by Enquea - 09-20-2010, 06:07 PM



Users browsing this thread: 1 Guest(s)