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
Just a quick fix please??Script missing word?
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#1
Sad  Just a quick fix please??Script missing word?

Alright...this is wat happens when i load the Custom story or Reload it (In this case reload it)
http://postimage.org/image/4any4osw7/

Can anyone show me a quick fix?

here is the script i used:


1////////////////////////////
2//Run first time starting map
3void OnStart()
4{
5SetEntityCallbackFunc("", "key_torture_chamber_1", "UsedKeyOnDoor", true);
6}
7void OnPickup(string &in asEntity, string &in type)
8{
9AddUseItemCallback("", "key_torture_chamber_1", "door_hub_1", "UsedKeyOnDoor", true);
10{
11SetEntityActive("servant_grunt_1", true);
12ShowEnemyPlayerPosition("servant_grunt_1");
13}
14void UsedKeyOnDoor(string &in asItem, string &in asEntity)
15{
16SetLevelDoorLocked("level_hub_1", false);
17PlaySoundAtEntity("", "unlock_door", "level_hub_1", 0.0f, false);
18RemoveItem("key_torture_chamber_1");
19AddDebugMessage("Key On Door", false);
20}
21
22////////////////////////////
23//Run when leaving map
24void OnLeave()
25}
26
27{

Il leave the custom story for you to download if you want to...it's small with only 2 maps...currently being made...it's for pewdiepie...test it out and tell me what you think when it is fixed il upload it again here...


Attached Files
.rar   Ghosthunting.rar (Size: 1.55 MB / Downloads: 112)
(This post was last modified: 09-13-2012, 10:24 AM by danimora2012.)
09-13-2012, 10:21 AM
Find


Messages In This Thread
Just a quick fix please??Script missing word? - by danimora2012 - 09-13-2012, 10:21 AM



Users browsing this thread: 1 Guest(s)