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
Amnesia custom story problem
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#11
RE: Amnesia custom story problem

(05-13-2012, 11:10 AM)KodiakZ Wrote: It already had. I checked for spelling mistaked missing , and stuff. But when i made a new door and didn't rename it just so its called original name it worked. Now my only problem is note text not showing and name of key not showing.


Exatra_english:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_Key">A Key</Entry>
<Entry Name="ItemDesc_Key">A Awesome Key</Entry>
</CATEGORY>

In Editor: klick on the key, select Entity, at the bottom it says: CustomSubItemName.
Type in: Key, and then it should work!
Wink

simply nuff said




05-13-2012, 04:50 PM
Find Reply
ezra627 Offline
Junior Member

Posts: 5
Threads: 5
Joined: Sep 2014
Reputation: 0
#12
RE: Amnesia custom story problem

I have the same problem,this is the code:
Void OnStart()
{
AddUseItemCallback(string& asName, "Key1", "Doortolvl1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doortolvl1", false, true);
PlaySoundAtEntity("", "amb_alert01", "Doortolvl1", 0, false);
RemoveItem("Key1");
}

i looked at the key and door name like 50 times!IT IS EXACTLY THE FREAKING SAME!!!And when i test it,it says "can not use the item this way!"
09-25-2014, 03:26 AM
Find Reply
Mudbill Offline
Muderator

Posts: 3,880
Threads: 59
Joined: Apr 2013
Reputation: 179
#13
RE: Amnesia custom story problem

@ezra627

It won't work if you use a capital V in void.
> void OnStart()

You're also missing the first string in the AddUseItemCallback. You can't use string& asName, you need to change that to a name within double quotes.

(This post was last modified: 09-25-2014, 06:56 AM by Mudbill.)
09-25-2014, 06:55 AM
Find Reply




Users browsing this thread: 1 Guest(s)