Frictional Games Forum (read-only)

Full Version: Make things Interactive? [FIXED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
"
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?
Quote:dosn't work with my keycard open door scripts?
void ???(string &in asItem, string &in asEntity)
You might look for this Silent*
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
Did you script the use item callback ? It's not going to work on its own : ).
I've fixed the problem, and some others too Wink
Helped this guys trough Skype.
Thanks daortir and Romulator.