The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
.Lang File Help When Key Picked Up It Says Picked Up
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#1
When Key Picked Up It Says Picked Up

I Have Done a Key Script for a door but when i pick up the key it just says 'picked up' and in the description it doesn't say anything can someone please tell me what i am doing wrong In Level Editor the Key is called 'hallkey' and the door 'halldoor' and in the entity tab on the key i put customsubitemname to 'hall_key' so could u help?
LANG
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
You are Inside This strange House that you entered after hearing screams from inside </Entry>
</Entry>
</CATEGORY>
</CATEGORY Name="Inventory">
<Entry Name="ItemName_hall_key">Hall Key</Entry>
<Entry Name="ItemDesc_hall_key"> Key Labeled "Hall Key"</Entry>
</CATEGORY>
</LANGUAGE>
and the script works but here it is for anyone who wants a working one.

{
AddUseItemCallback("", "hallkey", "halldoor", "hallkeydoor", true);
}

void hallkeydoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("halldoor", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "halldoor", 0, false);
RemoveItem("hallkey");
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
}


This Darn House! , Four Doors, Youtube
02-03-2012, 05:20 AM
Find


Messages In This Thread
When Key Picked Up It Says Picked Up - by heyitsrobert97 - 02-03-2012, 05:20 AM



Users browsing this thread: 1 Guest(s)