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 Door "It wont budge"
BallisticDK Offline
Junior Member

Posts: 5
Threads: 2
Joined: Feb 2012
Reputation: 0
#1
Door "It wont budge"

Hey, i need help to find out how to make a STD door say, "It wont budge" when i interact with it And is locked.

Ive Looked on google this forum and the Engine Script Page

Thanks you for you'r help
02-21-2012, 06:44 PM
Find
Ninami Offline
Member

Posts: 59
Threads: 6
Joined: Feb 2012
Reputation: 2
#2
RE: Door "It wont budge"

Somehow I doubt you checked the forum Tongue

Because I learned how to do this from many forum posts from here.
02-21-2012, 07:01 PM
Find
BallisticDK Offline
Junior Member

Posts: 5
Threads: 2
Joined: Feb 2012
Reputation: 0
#3
RE: Door "It wont budge"

i looked afte and Searched
"It wont budge" but if you says you lerned it from there, then i didnt look close enoph Derp Spell fail
02-21-2012, 08:03 PM
Find
Ninami Offline
Member

Posts: 59
Threads: 6
Joined: Feb 2012
Reputation: 2
#4
RE: Door "It wont budge"

You will have to use this function:

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.


And combine it with:

SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

So when the player "touches" the door, the message will appear.

02-21-2012, 08:16 PM
Find




Users browsing this thread: 2 Guest(s)