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 Repeating Functions SOLVED
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Repeating Functions

Do you mean like this?

void UnlockingDoor(string &in asEntity, string &in asItem)
{
      if(asEntity == "castle_1"){
            SetPlayerRunSpeedMul(0);
            SetPlayerMoveSpeedMul(0.2);
            SetPlayerLookSpeedMul(0.3);
            AddTimer("", 2.0f, "Unlocked");
            SetSwingDoorLocked("castle_1", false, true);
      }else if(asEntity == "ANOTHERDOOR"){
            //Do this instead
      }
}

Changed key_study_1 and DoorLock_1 to asEntity and asItem so this is possible.

Derp.
(This post was last modified: 04-14-2014, 03:30 PM by Neelke.)
04-14-2014, 03:30 PM
Find


Messages In This Thread
RE: Repeating Functions - by Neelke - 04-14-2014, 03:30 PM
RE: Repeating Functions - by Mudbill - 04-14-2014, 05:14 PM
RE: Repeating Functions - by hunchbackproduction - 04-15-2014, 10:35 AM



Users browsing this thread: 1 Guest(s)