Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Unexpected end of file problem
Post: RE: Unexpected end of file problem
I already have notepad++ :) but thanks anyway. And the reason I couldn't find the problem was because it said like "line (180,2)", and that token was just a }. But it's fixed now anyways :) |
|
Togglevolt |
Development Support
|
8 |
5,927 |
11-19-2011, 02:02 AM |
|
|
Thread: Unexpected end of file problem
Post: RE: Unexpected end of file problem
Oh.....I knew it had to be something like that. But I've checked the script several times and didn't see it :O gonna try it now then
Yes it works now. Thanks for having better eyes than me! ;) |
|
Togglevolt |
Development Support
|
8 |
5,927 |
11-18-2011, 09:45 PM |
|
|
Thread: Unexpected end of file problem
Post: RE: Unexpected end of file problem
Okey :) haha. Thx for the tip. But does any of you know why it doesn't work? I don't quite understand that "/ |
|
Togglevolt |
Development Support
|
8 |
5,927 |
11-18-2011, 08:32 PM |
|
|
Thread: Unexpected end of file problem
Post: Unexpected end of file problem
For some reason my game crashes when I use this script and I don't know what's wrong with it.
It say Unexpeted end of file, but if I keep the whole method empty it say nothing but none of my other scr... |
|
Togglevolt |
Development Support
|
8 |
5,927 |
11-18-2011, 03:34 PM |
|
|
Thread: Leveldoor Problem
Post: RE: Leveldoor Problem
Works perfectly now! :) Thanks alot man! I changed it all to:
void CheckLantern(string &in asEntity)
{
SetLevelDoorLocked("level_wood_1", false);
}
void OnEnter()
{
SetEntityPlayerInteract... |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-14-2011, 04:23 PM |
|
|
Thread: Leveldoor Problem
Post: RE: Leveldoor Problem
I tried to put the "CheckLantern" in the interact callback tab on the lantern. Then the level door is locked even if I have the lantern on me.
CheckLantern looks like this:
void CheckLantern(stri... |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-13-2011, 11:03 PM |
|
|
Thread: Leveldoor Problem
Post: RE: Leveldoor Problem
It works, but it's not perfect. If I have the lantern in my inventory, I have to touch the door twice.
The first time I touch it, nothing happens except "Maybe I should find a Lantern first." is displ... |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-13-2011, 09:12 PM |
|
|
Thread: Leveldoor Problem
Post: RE: Leveldoor Problem
The SetMessage("Ch01Level01", "InteractLevelDoor", 0); = Maybe I should find a Lantern first.
It is displayed as wanted when I touch the door without a Lantern. But it is also displayed at the very
... |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-13-2011, 08:42 PM |
|
|
Thread: Leveldoor Problem
Post: RE: Leveldoor Problem
It works!
Only problem is, it shows the message when I start the map too. In the very beginning. "/
Any idea how to fix that?
I want it displayed only when I touch the door. |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-13-2011, 08:32 PM |
|
|
Thread: Leveldoor Problem
Post: Leveldoor Problem
Hi!
I want my level door to be locked if you don't have a lantern in your inventory. But for some reason it doesn't work. If I don't have a lantern a message say "I need to find a Lantern". But I sti... |
|
Togglevolt |
Development Support
|
10 |
7,445 |
11-13-2011, 07:27 PM |