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


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

Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Russ Money Offline
Senior Member

Posts: 360
Joined: Dec 2010
Reputation: 4
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Wonderbread Offline
Junior Member

Posts: 19
Joined: May 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
miguli Offline
Junior Member

Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
miguli Offline
Junior Member

Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
miguli Offline
Junior Member

Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)