Nippew
Junior Member
Posts: 11
Threads: 4
Joined: Feb 2008
Reputation:
0
|
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 |
|
Pandemoneus
Senior Member
Posts: 328
Threads: 2
Joined: Sep 2010
Reputation:
0
|
RE: script problem
Don't put floats and integers in "".
|
|
09-24-2010, 11:52 PM |
|