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
Need help!!! Script...
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
Need help!!! Script...

Hello i cant get this to work ! :'( A Locked Key to be open by a key on the floor but cant get it to work please help and cant get the key to get name "Cell Key" Here is the scripts...

PHP Code: (Select All)
////////////////////////////
// Run first time starting map
 
void OnEnter()
{
void AddUseItemCallback("""cellkey_1""celldoor_1"UsedKeyOnDoor", True);
}

void MyFunc(string &in asItem, string &in asEntity)
{
  SetSwingDoorLocked("
celldoor_1", "false", true);
  PlaySoundAtEntity("", "
unlock_door", "celldoor_1", 0, false);
  RemoveItem(cellkey_1);
}
    
////////////////////////////
// Run when Leaving map
void onleave 
{




And here is Lang script

PHP Code: (Select All)
<Main
    Name
="The Espace From Caslte"
    
Author="Hasse951 Aka Jesseh Music"
        
StartMap="00.intro.map"
    
StartPos=""
/>
<
LANGUAGE>
   <
CATEGORY Name="The Esapace From Castle">
      <
Entry Name="Jonah is escaping from the castle in a middle of no were ">
     
   </
CATEGORY>
</
LANGUAGE>

<
CATEGORY Name ="Inventory">
        <
Entry Name="Itemdeac_cellkey_1">"Cell key to the locked Cell door"</Entry>
        <
Entry Name="ItemName_cellkey_1">Cell Key</Entry
        
    
</CATEGORY>
</
LANGUAGE
im new on scripts first day im working with it! please answer!

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 12-22-2011, 02:01 PM by jessehmusic.)
12-22-2011, 02:01 PM
Website Find


Messages In This Thread
Need help!!! Script... - by jessehmusic - 12-22-2011, 02:01 PM
RE: Need help!!! Script... - by flamez3 - 12-22-2011, 02:36 PM
RE: Need help!!! Script... - by jessehmusic - 12-22-2011, 02:53 PM
RE: Need help!!! Script... - by flamez3 - 12-22-2011, 03:07 PM
RE: Need help!!! Script... - by jessehmusic - 12-22-2011, 03:19 PM
RE: Need help!!! Script... - by Unearthlybrutal - 12-22-2011, 03:30 PM
RE: Need help!!! Script... - by jessehmusic - 12-22-2011, 04:54 PM
RE: Need help!!! Script... - by Unearthlybrutal - 12-22-2011, 05:04 PM
RE: Need help!!! Script... - by jessehmusic - 12-22-2011, 05:11 PM
RE: Need help!!! Script... - by jessehmusic - 12-22-2011, 06:54 PM
RE: Need help!!! Script... - by Unearthlybrutal - 12-22-2011, 09:48 PM



Users browsing this thread: 3 Guest(s)