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 Make things Interactive? [FIXED]
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#1
Make things Interactive? [FIXED]

Hi there i'm working on my current mod "Hopsital Of Horror"
and i can't remember how to make entites to interact , so for examepl

Player clicks on a lets say a body then he found something , im trying to remember but been a while sence i was creating this mod , and i would love to see if someone helped me with this one , please help me !

UPDATE:

got everything to work but it dosn't work with my keycard open door scripts?
it has same name with "Sec_blue_1" :O
here is the script

"
void doctorinteract(string &in asEntity)
{
SetMessage("Mes", "bodymessage", 15);
GiveItem("Sec_Blue_1", "Sec_Blue_1.ent", "Bluecard", "Sec_Blue.tga", 1);
}
"

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
(This post was last modified: 01-13-2014, 05:33 PM by SilentHideButFine.)
01-13-2014, 04:21 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Make things Interactive?

Assuming that your first part is okay, could you explain what your problem is with the interact specifically?

Such as;
Do you not get the item in your inventory?
Is your problem that you're unable to open doors with this item?

Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-13-2014, 09:06 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: Make things Interactive?

Quote:dosn't work with my keycard open door scripts?
void ???(string &in asItem, string &in asEntity)
You might look for this Silent*
(This post was last modified: 01-13-2014, 03:48 PM by DnALANGE.)
01-13-2014, 03:47 PM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#4
RE: Make things Interactive?

The total problem of the script is , that he get the message he get the card BUT the keycard don't work to the panels :O

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
01-13-2014, 05:03 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#5
RE: Make things Interactive?

Did you script the use item callback ? It's not going to work on its own : ).

01-13-2014, 05:29 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: Make things Interactive? [FIXED]

I've fixed the problem, and some others too Wink
Helped this guys trough Skype.
Thanks daortir and Romulator.
01-13-2014, 05:44 PM
Find




Users browsing this thread: 1 Guest(s)