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
#3
RE: HPS script issue

I'm still doing something wrong here, don't exactly know what. I probably messed it up in this failed fix I just tried, I still don't understand scripting at all:


Quote:void OnStart(AddUseItemCallback("", "key_tomb_rusty_1", "metal_1", "KeyOnDoor1", true); )
{

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

void OnStart(AddUseItemCallback("", "key_torture_chamber_1", "prison_1", "KeyOnDoor2", true); )
{

}

void KeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "prison_1", 0.0f, true);
RemoveItem("key_torture_chamber_1");
}

void OnStart(AddUseItemCallback("", "key_tower_1", "hatch_ceiling_1", "KeyOnDoor3", true); )
{


void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("hatch_ceiling_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "hatch_ceiling_1", 0.0f, true);
RemoveItem("key_tower_1");
}

Sorry if this is something super simple, but I am thoroughly confused...Sad
(This post was last modified: 01-15-2011, 07:26 AM by Devil Dogs SF.)
01-15-2011, 07:26 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: 1 Guest(s)