Frictional Games Forum (read-only)

Full Version: Custom Story Dagger Question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to get it to where when I use a ceremony on a body it will activate a key that is laying on top of the body(inactive).
My problem is that when I go to use the knife on the body it says something like"this item cannot be used in this way". How should I script this???

My script is something like this:

AddUseItemCallback("ceremony_knife", "ceremony_knife_1", "corpse_1", "cut_man_1", false);

void cut_man_1(string &in asItem, string &in asEntity)
{
SetEntityActive("key_1", true);
RemoveItem("ceremony_knife");
}

anyone please....
Thread category "Custom Stories and Modifications" will help you.
I dont understand what the "ceremony_knife_1" is for,and make sure all the names match up.
(08-03-2011, 04:24 PM)WatzUpzPeepz Wrote: [ -> ]I dont understand what the "ceremony_knife_1" is for,and make sure all the names match up.

basically the knife will be usable on the body(corpse_1) and then a key will become active next to the body....
something about items such as "ceremony_knife_1" dont script well. I don't know if this is true, but i think you might have to create a custom item with the different properties
and i cant help you very much sorry
Make sure to double check your in-map names. I know that's what has been messing with me for the last little bit.
(08-04-2011, 03:23 AM)Obliviator27 Wrote: [ -> ]Make sure to double check your in-map names. I know that's what has been messing with me for the last little bit.

that isn't it iv'e checked them a hundred times.....I need to see a script of how to do it??