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
#5
RE: script again..

(09-10-2012, 12:28 AM)andyrockin123 Wrote: Like I said before, until I'm sure what entities correspond with what names in the script I couldn't tell you if you are using them correctly. I understand what you're trying to accomplish, I just don't understand what a "contWW_2" (or any other name) is in game.
oh.. sorry.. okey. here it is!

void startoven(string &in asEntity, int alState)
{
GetEntitiesCollide("contWW_2", "placeWW");
if (GetEntitiesCollide("contWW_2", "placeWW") == true);<-- contWW_2 is a container, placeWW is an area
{


if(alState == -1){
SetEntityActive("contWW_2", false);
SetEntityActive("contBmeat", true); <-- another container which should replace the other one.

}
}
}

did that help more? Smile

used by this:
SetEntityConnectionStateChangeCallback("ovenlever", "startoven");

---------Want help with YOUR Custom Story? ---------
http://www.frictionalgames.com/forum/user-19049.html
(This post was last modified: 09-10-2012, 12:37 AM by Alento.)
09-10-2012, 12:35 AM
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: 1 Guest(s)