Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The if ?
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: The if ?

Example:

Function when player touched the door
(mansion_2) :


void TouchDoor(string& asName)
{
if (GetSwingDoorLocked("mansion_2") == true) //checks if the door is locked
{
SetMessage("Messages", "DoorLocked", 0); // if locked --> message appears
}
else // if the door is not locked

SetMessage("Messages", "DoorOpen", 0);
}

The "If" always checks stuff

When Life No Longer Exists
Full-conversion mod
(This post was last modified: 03-06-2012, 02:59 PM by Unearthlybrutal.)
03-06-2012, 02:53 PM
Website Find


Messages In This Thread
The if ? - by Shives - 03-06-2012, 02:46 PM
RE: The if ? - by Unearthlybrutal - 03-06-2012, 02:53 PM
RE: The if ? - by Datguy5 - 03-06-2012, 02:54 PM
RE: The if ? - by Shives - 03-06-2012, 04:14 PM
RE: The if ? - by Nevicar - 03-06-2012, 06:27 PM
RE: The if ? - by Unearthlybrutal - 03-06-2012, 07:26 PM
RE: The if ? - by Nevicar - 03-06-2012, 07:34 PM
RE: The if ? - by Shives - 03-07-2012, 01:46 PM
RE: The if ? - by Stepper321 - 03-07-2012, 05:01 PM
RE: The if ? - by Shives - 03-07-2012, 05:22 PM



Users browsing this thread: 2 Guest(s)