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
script problem
Nippew Offline
Junior Member

Posts: 11
Threads: 4
Joined: Feb 2008
Reputation: 0
#1
script problem

Hi,
so i'm trying to make a hatch (just like there at beginning of the game) which could be opened by pulling a lever up/down. First the lever would had to be attached to the mounting plate and then the hatch opened.
So first before making that opening script (which i think i can do) i'd had to do the attaching one.
i use the line:
AddAttachedPropToProp(string& asPropName, string& asAttachName, string& asAttachFile, float afPosX, float afPosY, float afPosZ, float afRotX, float afRotY, float afRotZ);

Here's how my script is now:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddAttachedPropToProp("lever_1", "lever_mount", "lever_small01", "12.309", "1.767", "17.75", "0", "-90", "0");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


Errors and errors, is this even the right function?
09-24-2010, 11:05 PM
Find
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: script problem

Don't put floats and integers in "".

09-24-2010, 11:52 PM
Find




Users browsing this thread: 1 Guest(s)