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
What does that mean?
Wrathborn771 Offline
Junior Member

Posts: 45
Threads: 10
Joined: Jun 2012
Reputation: 0
#2
RE: What does that mean?

(06-23-2012, 04:02 PM)Jagsrs28 Wrote: So I am trying to get a door close behind me. I have this:


void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);


Put into void OnEnter. I don't know how to fill that out. Could someone explain string& asName, bool abLocked, and bool abEffects mean? So I can actually get a door to slam shut behind the player when they walk into a room.




Thank You
I'm not a expert at scripting, but try with:

void OnEnter
{
void SetSwingDoorLocked("the name of the door", "your function, call it whatever you want", "you could choose from 0, -1 and 1. I think 1 is the best one to use");
}

Example:

void OnEnter ()
{
void SetSwingDoorLocked("door_1", "shut_door", 1);
}

Correct me if I'm wrong
(This post was last modified: 06-23-2012, 04:48 PM by Wrathborn771.)
06-23-2012, 04:47 PM
Find


Messages In This Thread
What does that mean? - by Jagsrs28 - 06-23-2012, 04:02 PM
RE: What does that mean? - by Wrathborn771 - 06-23-2012, 04:47 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 04:56 PM
RE: What does that mean? - by Jagsrs28 - 06-23-2012, 05:12 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 05:15 PM
RE: What does that mean? - by Jagsrs28 - 06-23-2012, 06:46 PM
RE: What does that mean? - by Unearthlybrutal - 06-23-2012, 06:50 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 07:26 PM
RE: What does that mean? - by Adny - 06-23-2012, 08:36 PM
RE: What does that mean? - by MaZiCUT - 06-23-2012, 08:37 PM
RE: What does that mean? - by Cruzore - 06-23-2012, 08:39 PM



Users browsing this thread: 1 Guest(s)