The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
script problem - by Nippew - 09-24-2010, 11:05 PM
RE: script problem - by Pandemoneus - 09-24-2010, 11:52 PM



Users browsing this thread: 1 Guest(s)