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
Friendly Monster?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#16
RE: Friendly Monster?

I've never used an NPC.
If you can make it follow pathnodes, then yes, that should be possible Wink

Making a monster follow you doesn't require much more than a little bit of scripting. It shouldn't be hard if you know how to:

You create a scriptarea called "AreaNode_1"
Then you place a pathnode in that area called "PathAreaNode_1"
Repeat, everywhere.
Check that the names always correspond.

In your script file you make it like this:
void OnStart()
{
for(int i=1;i<=100;i++)
AddEntityCollideCallback("Player", "AreaNode_"+i, "MonsterFollowFunction", false, 1);
}

void MonsterFollowFunction(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("Monster", "Path"+asChild, 0, "")
}

To make the monster attack something else, you're gonna have to create a scripted sequence.

For example:

When colliding with area
---Monster runs to the thing it has to kill
---Screen goes black
---Monster and Claw sounds play
---Screen fades in where the thing has been destroyed and the monster is close to the thing.

Seems usable?

Trying is the first step to success.
05-08-2014, 11:51 AM
Find


Messages In This Thread
Friendly Monster? - by ProyectV - 04-28-2014, 12:57 AM
RE: Friendly Monster? - by lothabread - 04-28-2014, 02:20 AM
RE: Friendly Monster? - by Romulator - 04-28-2014, 09:59 AM
RE: Friendly Monster? - by ProyectV - 04-28-2014, 08:10 PM
RE: Friendly Monster? - by Daemian - 04-28-2014, 10:11 PM
RE: Friendly Monster? - by lothabread - 04-29-2014, 12:54 AM
RE: Friendly Monster? - by 7heDubz - 04-29-2014, 01:02 AM
RE: Friendly Monster? - by MsHannerBananer - 04-29-2014, 08:43 PM
RE: Friendly Monster? - by FlawlessHappiness - 04-30-2014, 10:24 AM
RE: Friendly Monster? - by Straxedix - 05-02-2014, 09:20 AM
RE: Friendly Monster? - by Straxedix - 05-06-2014, 02:04 PM
RE: Friendly Monster? - by MsHannerBananer - 05-07-2014, 03:00 AM
RE: Friendly Monster? - by Romulator - 05-06-2014, 02:31 PM
RE: Friendly Monster? - by Straxedix - 05-07-2014, 08:28 PM
RE: Friendly Monster? - by ProyectV - 05-07-2014, 10:05 PM
RE: Friendly Monster? - by FlawlessHappiness - 05-08-2014, 11:51 AM
RE: Friendly Monster? - by Nikson. - 05-08-2014, 12:49 PM
RE: Friendly Monster? - by Darkfire - 05-30-2014, 03:55 PM



Users browsing this thread: 2 Guest(s)