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 Help Int and Float Question
Plazmater Offline
Member

Posts: 122
Threads: 24
Joined: Aug 2013
Reputation: 1
#4
RE: Int and Float Question

Nah, that float isnt important to me... i was just curious.

But that door state is important, i want that if door unlocks after i complete book puzzle, it also remain opened to some extent.

As written in wiki, there are 3 door states:

-1 = angle is close to 0°, 1 = angle is 70% or higher of max, 0 = inbetween -1 and 1.

Now, can i use it in void like this ?

void PuzzleCompleted()
{
SetSwingDoorLocked("mansion_7", false, true);
GetSwingDoorState("DoorName") == 1;
}

(I dont know if i am writing that code correctly.)

Unlike your script Mudbill which makes door slowly opening, i want the door open to certain extent instantly.
Thats what that script does i guess ?
07-19-2014, 03:36 PM
Find


Messages In This Thread
Int and Float Question - by Plazmater - 07-19-2014, 10:58 AM
RE: Int and Float Question - by PutraenusAlivius - 07-19-2014, 02:15 PM
RE: Int and Float Question - by Mudbill - 07-19-2014, 02:27 PM
RE: Int and Float Question - by Plazmater - 07-19-2014, 03:36 PM
RE: Int and Float Question - by Mudbill - 07-19-2014, 04:55 PM
RE: Int and Float Question - by Plazmater - 07-19-2014, 05:05 PM



Users browsing this thread: 1 Guest(s)