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
Use item in other levels
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: Use item in other levels

I tried what you did, with no luck... Now there is only the use script in the level where it is used
I looked in the engine scripts and in the:
Quote:GiveItem("", "glass_container_mix_done", "fiskeolie", "glass_container_mix_done.tga", 1);
I made the subItemType "fiskeolie" and that was what i used in the scripts... guess that was wrong...
i tried with "glass_container_mix_done" and made it look like this:
Quote:void OnStart ();
{
AddUseItemCallback("", "glass_container_mix_done", "gryde1", "UseItemOnArea", true);
}

void UseItemOnArea(string &in asItem, string &in asEntity)
{
SetEntityActive("Fiskeolie_static_1", true);
SetSwingDoorLocked("mansion_5", true, true);
StartPlayerLookAt("mansion_8", 10, 10, "");
AddTimer("", 0.3, "LookAtDoor_1");
RemoveItem("glass_container_mix_done ");
}
Still it doesnt work...

Trying is the first step to success.
(This post was last modified: 04-24-2012, 06:53 PM by FlawlessHappiness.)
04-24-2012, 06:51 PM
Find


Messages In This Thread
Use item in other levels - by FlawlessHappiness - 04-23-2012, 09:22 AM
RE: Use item in other levels - by Mine Turtle - 04-23-2012, 09:40 AM
RE: Use item in other levels - by i3670 - 04-23-2012, 10:26 AM
RE: Use item in other levels - by Cranky Old Man - 04-23-2012, 10:39 AM
RE: Use item in other levels - by Cranky Old Man - 04-23-2012, 10:54 AM
RE: Use item in other levels - by Mine Turtle - 04-23-2012, 10:57 AM
RE: Use item in other levels - by Cranky Old Man - 04-23-2012, 11:07 AM
RE: Use item in other levels - by Mine Turtle - 04-23-2012, 12:25 PM
RE: Use item in other levels - by Knittel - 04-23-2012, 01:06 PM
RE: Use item in other levels - by FlawlessHappiness - 04-24-2012, 06:51 PM
RE: Use item in other levels - by Cranky Old Man - 04-24-2012, 07:08 PM
RE: Use item in other levels - by Cranky Old Man - 04-24-2012, 08:12 PM



Users browsing this thread: 1 Guest(s)