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:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script again..
Alento Offline
Member

Posts: 64
Threads: 11
Joined: Jan 2012
Reputation: 0
#1
Exclamation  script again..

Hey again!

Look:


void startoven(string &in asEntity, int alState)
{
if (asName == "ovenlever")
{
GetEntitiesCollide("contWW_2", "placeWW");
if(alState == -1){
SetEntityActive("contWW_2", false);
SetEntityActive("contBmeat", true);

}
}
}

What I want, it that the "contBmeat" will be active IF you have placed "contWW_2" at the "placeWW" area.
And only when you have placed it there, will the "ovenlever" make the "contBmeat" exist. Do you get what I mean? Tongue I've never used "GetEntitiesCollide", how does it work? In general, what does "bool" mean exactly, cuz in Engine script, it says bool before GetEntitiesCollide, what does it mean? please help me asap! need to continue the scripting.
and this is in my path to do that.. Sad

Peace!

---------Want help with YOUR Custom Story? ---------
http://www.frictionalgames.com/forum/user-19049.html
09-09-2012, 11:43 PM
Find


Messages In This Thread
script again.. - by Alento - 09-09-2012, 11:43 PM
RE: script again.. - by Adny - 09-10-2012, 12:15 AM
RE: script again.. - by Alento - 09-10-2012, 12:22 AM
RE: script again.. - by Adny - 09-10-2012, 12:28 AM
RE: script again.. - by Alento - 09-10-2012, 12:35 AM
RE: script again.. - by Adny - 09-10-2012, 12:49 AM



Users browsing this thread: 3 Guest(s)