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
Quick Question
Kurask Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2011
Reputation: 0
#1
Quick Question

How do you change the way an enemy faces when activated? They all appear to face in the same direction, even when rotated in the level editor, and I want them to face in a certain way.
(This post was last modified: 09-27-2011, 02:05 AM by Kurask.)
09-27-2011, 02:04 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Quick Question

Check to see if you have any .map_cache files in your maps directory. If so, delete them and try the map again. If you have rotated them in the level editor, then so should they appear rotated in game.

Tutorials: From Noob to Pro
09-27-2011, 02:13 AM
Website Find
Kurask Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2011
Reputation: 0
#3
RE: Quick Question

I just checked, and there aren't any .map_cache files in my maps directory for that level.
(This post was last modified: 09-27-2011, 02:23 AM by Kurask.)
09-27-2011, 02:23 AM
Find
Pr3d4t0r Offline
Member

Posts: 78
Threads: 4
Joined: Sep 2011
Reputation: 0
#4
RE: Quick Question

I have the same problem (even if it's not important for the moment) but I have a monster on my map, facing a wall in the editor (used rotation) and when I test it, it always faces the player. And there is no map_cache in my folder.
09-27-2011, 02:52 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#5
RE: Quick Question

Rotating them will not change a thing, maybe you'd want to use patrol nodes to move them in the way you want.

09-27-2011, 02:52 AM
Website Find
Pr3d4t0r Offline
Member

Posts: 78
Threads: 4
Joined: Sep 2011
Reputation: 0
#6
RE: Quick Question

(09-27-2011, 02:52 AM)Tanshaydar Wrote: Rotating them will not change a thing, maybe you'd want to use patrol nodes to move them in the way you want.
Yeah I already thought about this solution, and I think I'm gonna use this way.

Thanks anyway Wink

By the way Tanshaydar, our team (Around The World Arts) is working on a huge mod for Amnesia. Maybe, if you have time, you could take a look at it and give us some feedbacks. We'ld appreciate critics from a big modder Wink

(This post was last modified: 09-27-2011, 03:01 AM by Pr3d4t0r.)
09-27-2011, 02:56 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#7
RE: Quick Question

I haven't yet? lol :/

09-27-2011, 03:14 AM
Website Find
Kurask Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2011
Reputation: 0
#8
RE: Quick Question

Ah, ok. I didn't want it to move; I just needed it to spawn facing the player for 3-4 seconds (triggers disabled)then go inactive again. Looks like the only way to do it will be to rotate the entire map to match the way its facing.
(This post was last modified: 09-27-2011, 01:32 PM by Kurask.)
09-27-2011, 01:29 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#9
RE: Quick Question

Don't Smile make it notice the player, then disable it right after - 0.05 timer(?). Or have it walk 0,5 meters in the beginning of the map and then disable it. Turning the map sounds like a whole lot of trouble..

[Image: mZiYnxe.png]


09-27-2011, 05:12 PM
Find
Kurask Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2011
Reputation: 0
#10
RE: Quick Question

Just did that; for some reason it didn't work yesterday. Must've made a typo and gave up Tongue It's working now though.


What are the names of the two sound files that play when a monster is chasing a player? Using this method will require me to stop that file (the buzzing noise and the music).


Actually, this ended up doing what I wanted


void CollideBehind(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_3", true, true);
SetEntityActive("grunt_3", true);
AddEnemyPatrolNode("grunt_3", "Path", 100.0f, "");
SetEnemyDisableTriggers("grunt_3", true);
AddTimer("", 4.0f, "CollideBehindStop");
}
void CollideBehindStop(string &in asTimer)
{
FadeEnemyToSmoke("grunt_3", true);
}



For anyone else who may want to do the same thing.
(This post was last modified: 09-27-2011, 08:18 PM by Kurask.)
09-27-2011, 07:39 PM
Find




Users browsing this thread: 2 Guest(s)