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
Amnsesi script. need help
tokugawa1 Offline
Junior Member

Posts: 37
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
Amnsesi script. need help

Well im creating a new map but im having trouble with the scripts so here is my .hps file:

void OnStart()
{
AddUseItemCallback("", "key_1", "door_1","UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0.0f, false);
RemoveItem("key_1");
}

{

SetEntityPlayerInteractCallback("monster_tinderbox", "Spawn_Monster", true);

}

void Spawn_Monster(string &in entity)
{

SetEntityActive("servant_brute_1", true);

}

void OnEnter()
{
}

And the error message says:



FATAL ERROR: Could not load script file 'custom_stories/The Deception/custom_stories/The Deception/maps/The Deception.hps'!

main (13,1) : ERR : Unexpected token '{'



Hope you guys can help me out [Image: sad.gif]
(This post was last modified: 08-01-2012, 07:22 PM by tokugawa1.)
08-01-2012, 07:21 PM
Find


Messages In This Thread
Amnsesi script. need help - by tokugawa1 - 08-01-2012, 07:21 PM
RE: Amnsesi script. need help - by Lizard - 08-01-2012, 07:36 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:01 PM
RE: Amnsesi script. need help - by Steve - 08-01-2012, 08:12 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:17 PM
RE: Amnsesi script. need help - by Lizard - 08-01-2012, 08:32 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-01-2012, 08:36 PM
RE: Amnsesi script. need help - by Seragath - 08-02-2012, 02:44 PM
RE: Amnsesi script. need help - by tokugawa1 - 08-02-2012, 03:44 PM



Users browsing this thread: 1 Guest(s)