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
Knittel Offline
Junior Member

Posts: 8
Threads: 1
Joined: Apr 2012
Reputation: 0
#10
RE: Use item in other levels

(At First: Always check the names of the objects that you want to use [CASE SENSITIVE]. 90% of the bugs I have are caused by that. And 9% of what is left is caused by forgetting to copy (string &in asEnitiy) or something like that to my new function.)
Maybe one of these AddUseItemCallbacks is overwriting the other. In order to avoid that I would remove the Function of the script of level 1. And I would put the function in the OnStart instead of OnEnter.

So this code:

void OnEnter()

{

AddUseItemCallback("", "glas", "gryde", "GlasGryde", true);

AddUseItemCallback("", "fiskeolie", "gryde1", "UseItemOnArea", true);

}

can you change to this:

void OnStart()

{

AddUseItemCallback("", "glas", "gryde", "GlasGryde", true);

}


If that doesn't solve your problem:I've created 2 Levels where I've done nearly the same as you did. The diffrence is that my item can be found in the one map and wasn't created by scripting. It works fine in my levels, so you could maybe make a entity with the object you want to get and make active = false and just set it active in the script of level 1.

[Image: 2ZwH0ZGD0AwL2.png]
[TRACKMANIA]


04-23-2012, 01:06 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 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: 2 Guest(s)