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
amnesia level editor key for locked door problem
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: amnesia level editor key for locked door problem

(02-19-2013, 03:47 PM)Smoke Wrote: You shouldn't use void OnEnter(). Use void OnStart instead. I think that's the problem.
And you have to use level doors to change to other maps. Just click on the level door, click the entity tab, go to StartPos (Enter the name of your playerstart area in the other map). Click the '...' next to MapFile and select the map you want it to bring you to.
You could also use the ChangeMap command but using level doors makes more sense.
If you need help with commands, I'd recommend this site.

EDIT: And you used </LANGUAGE> in the beginning of your .lang file. Change it to <LANGUAGE>. And perhaps doing this: RemoveItem("monsterdoorkey_1"); could do something

The OnStart function will execute only the first time the player loads the map. OnEnter will execute everytime the player loads the map. So, it doesn't actually matter where carlos111897 has the callback.

Double check that the names for the key/door are the same in your script as they are in the level editor.

In Ruins [WIP]
02-19-2013, 05:10 PM
Find


Messages In This Thread
RE: amnesia level editor key for locked door problem - by NaxEla - 02-19-2013, 05:10 PM



Users browsing this thread: 3 Guest(s)