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
[SOLVED]Need Help With A Sliding Door
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Need Help With A Sliding Door

Use:
PHP Code: (Select All)
void SetMoveObjectState(stringasNamefloat afState); 

Script:
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
SetEntityPlayerInteractCallback("button""MoveTheDoor"false); //Change false to true if you want the door to open/close once
}

void MoveTheDoor(string &in asEntity)
{
SetMoveObjectState("safety_normal_vert_1"1); //Change the "1" in the second argument since I don't know which state is open or closed



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 05-17-2014, 02:59 AM by PutraenusAlivius.)
05-17-2014, 02:55 AM
Find


Messages In This Thread
RE: Need Help With A Sliding Door - by Viper85626 - 05-17-2014, 02:33 AM
RE: Need Help With A Sliding Door - by PutraenusAlivius - 05-17-2014, 02:55 AM
RE: Need Help With A Sliding Door - by Viper85626 - 05-17-2014, 03:27 AM



Users browsing this thread: 1 Guest(s)