Frictional Games Forum (read-only)

Full Version: Resizing enemies?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi. I have a question / problem.

In my map, I have made a cabinet which opens by a grunt that spawns when you go near it, however the grunts head almost goes through the top of the cabinet and he is looking the opposite way even though I rotated him in the editor. I tried making him smaller but that doesn't work.

Is there any way to resize and rotate enemies?

Sorry if this have been asked before, I searched a bit but couldn't find any similar thread.


Thanks in advance.
It should be possible to resize them - at least you should be able to rotate them. Are you perhaps loading an old file while editing another, or loading from cache?
Thanks for the quick reply.

I am loading the same map, all other adjustments are applied when I reload the map. Also I noticed that if I make him super-huge, the moment he spawns he is huge for like half a second, then changes to normal size.

Edit: No matter how much I rotate him he still spawns looking in one direction, which is the opposite of which he is rotated.

I want him to look out of the cabinet, instead he looks straight at the back of it so you have to jump or do some kind of noise to get his attention.
I don't think you can resize enemies and have the changes stick. If you want him to turn around, you could try putting a patrol node in the direction you want him to face a tiny way in-front of him.
Edit: and also make him follow a patrol path containing that node at the start of the map.
Thanks! Will definitely try that and tell you if it works.
I put a path node but he doesn't do anything. The node is set to Active, do I have to use a script or something so that he follows it?
yep
AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);
Where do I have to put it? In the void OnStart part?
Put it in the same function that you spawn your enemy in.
Doesn't work.

Don't I have to change anything more in it?
Do I only have to paste "AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation); "?
(05-06-2011, 03:52 PM)Shadowfied Wrote: [ -> ]Doesn't work.

Don't I have to change anything more in it?
Do I only have to paste "AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation); "?

AddEnemyPatrolNode("NameOfMonsterEntity", "NameOfPathNode", 1.0f, "");

1.0f is the wait time and the empty quotes should be filled with the animation you want to play, that's usually empty though.
Pages: 1 2