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 A problem with doors
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: A problem with doors

SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);
Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity)
asName - internal name
asCallback - function to call
abRemoveOnInteraction - determines whether the callback should be removed when the player interacts with the entity

Maybe locking the door would be a good idea.
And then:

TeleportPlayer(string& asStartPosName);

Trying is the first step to success.
(This post was last modified: 08-31-2012, 01:34 PM by FlawlessHappiness.)
08-31-2012, 01:34 PM
Find


Messages In This Thread
A problem with doors - by The chaser - 08-31-2012, 01:29 PM
RE: A problem with doors - by FlawlessHappiness - 08-31-2012, 01:34 PM
RE: A problem with doors - by The chaser - 08-31-2012, 02:11 PM
RE: A problem with doors - by FlawlessHappiness - 08-31-2012, 02:15 PM
RE: A problem with doors - by i3670 - 08-31-2012, 02:24 PM
RE: A problem with doors - by The chaser - 09-01-2012, 09:54 AM



Users browsing this thread: 2 Guest(s)