Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4* Questions and Questions are in comic :O
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#1
Tongue  4* Questions and Questions are in comic :O

So, you wanna read with funny moments:

Wait i have 4 Questions*
http://img143.imageshack.us/img143/9408/...stions.png

[Image: mappingquestions.png]

Now with text:
1. How to use PathNodes?
2. How to make that when grap item enemy spawn's?
3. How to make Ladders working?
4. How to make if you are example in closet, enemy disapears?

LOT OF THANKS FOR HELPPERS!!1 i really need how to make those, beeeeecaus in my maps i need those all Dodgy

-Miguli
(is anybody used Custom Story name Hope?)

Amnesia map:
Hope - Work in Progress.
06-10-2011, 06:22 AM
Find Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: 4* Questions and Questions are in comic :O

PathNodes: http://www.frictionalgames.com/forum/thr...Path+Nodes

Ladders: http://www.frictionalgames.com/forum/thr...ht=Ladders

Player Grabs object and then monster spawns:

void OnStart()
{
     SetEntityCollideCallback("ItemName", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetEntityActive("MonsterName", true);
}

Here is next script about player going inside a closet and then sets the monster inactive:

Put an area in the closet and lets call it ScriptArea_1 for now.

void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", false, 1);
}
void Func01(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("MonsterName");
}

Make sure you plug in all the things for it.

(This post was last modified: 06-10-2011, 11:51 AM by Kyle.)
06-10-2011, 11:46 AM
Find Reply
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#3
RE: 4* Questions and Questions are in comic :O

but...now the monster gets activated? shouldn't it get DEactivated?.

[Image: 44917299.jpg]Dubstep <3
06-10-2011, 12:48 PM
Find Reply
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#4
RE: 4* Questions and Questions are in comic :O

To deactivate the monster is the same way of activating him, but the opposite.

SetEntityActive("MonsterName", true);

Would become

SetEntityActive("MonsterName", false);

06-10-2011, 01:08 PM
Find Reply
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#5
RE: 4* Questions and Questions are in comic :O

oh right but in kyles code it there's no True or False.

[Image: 44917299.jpg]Dubstep <3
06-10-2011, 01:17 PM
Find Reply
Wonderbread Offline
Junior Member

Posts: 19
Threads: 2
Joined: May 2011
Reputation: 0
#6
RE: 4* Questions and Questions are in comic :O

When a monster reaches the end of its specified path nodes it automatically deactivates.
06-10-2011, 04:01 PM
Find Reply
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#7
RE: 4* Questions and Questions are in comic :O

Umm....
Still i has problem with that 1 and 3 questions. Beecaus i tried that PathNode thing, it didint work it comes just errors.

(i'm not so good at english ^^')
So has someone pathNode tutorial as video?

Thanks for Helppers!!!1

Amnesia map:
Hope - Work in Progress.
06-10-2011, 04:41 PM
Find Reply
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#8
RE: 4* Questions and Questions are in comic :O

Kyle's grapping item enemy spawns thing dosent work with me Sad

Amnesia map:
Hope - Work in Progress.
06-10-2011, 08:30 PM
Find Reply
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#9
RE: 4* Questions and Questions are in comic :O

can you please post your current code?

[Image: 44917299.jpg]Dubstep <3
06-10-2011, 09:03 PM
Find Reply
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#10
RE: 4* Questions and Questions are in comic :O

Quote:void OnStart()
{
SetEntityCollideCallback("note_letter_1", "Func01", true);
}
void Func01(string &in asEntity)
{
SetEntityActive("grunt_1", true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Amnesia map:
Hope - Work in Progress.
06-10-2011, 09:43 PM
Find Reply




Users browsing this thread: 1 Guest(s)