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
HPS script issue [SOLVED]
Devil Dogs SF Offline
Junior Member

Posts: 4
Threads: 2
Joined: Jan 2011
Reputation: 0
#1
HPS script issue [SOLVED]

Hiya, I am trying to make a Custom Story, but unfortunately I kinda suck at scripting...

When I try to load the map in game it works fine, although with my HPS file in the story folder it give me a fatal error and crashes the game.

Could someone please take a look at this and see what the issue is, as I can't seem to find any info on it:


void OnStart()
{
AddUseItemCallback("", "key_tomb_rusty_1", "metal_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("metal_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "metal_1", 0.0f, true);
}

AddUseItemCallback("", "key_torture_chamber_1", "prison_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "prison_1", 0.0f, true);
}
(This post was last modified: 01-15-2011, 09:58 PM by Devil Dogs SF.)
01-15-2011, 05:29 AM
Find


Messages In This Thread
HPS script issue [SOLVED] - by Devil Dogs SF - 01-15-2011, 05:29 AM
RE: HPS script issue - by Andross - 01-15-2011, 06:34 AM
RE: HPS script issue - by Devil Dogs SF - 01-15-2011, 07:26 AM
RE: HPS script issue - by Andross - 01-15-2011, 07:38 AM
RE: HPS script issue - by Devil Dogs SF - 01-15-2011, 08:13 AM
RE: HPS script issue - by Seragath - 01-15-2011, 06:07 PM



Users browsing this thread: 2 Guest(s)