Shadowfied
Senior Member
Posts: 261
Threads: 34
Joined: Jul 2010
Reputation:
5
|
Resizing enemies?
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.
(This post was last modified: 05-07-2011, 04:58 AM by Shadowfied.)
|
|
05-06-2011, 11:28 AM |
|
Roenlond
Senior Member
Posts: 331
Threads: 3
Joined: Apr 2011
Reputation:
0
|
RE: Resizing enemies?
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?
|
|
05-06-2011, 11:30 AM |
|
Shadowfied
Senior Member
Posts: 261
Threads: 34
Joined: Jul 2010
Reputation:
5
|
RE: Resizing enemies?
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.
(This post was last modified: 05-06-2011, 11:39 AM by Shadowfied.)
|
|
05-06-2011, 11:36 AM |
|
Apjjm
Is easy to say
Posts: 496
Threads: 18
Joined: Apr 2011
Reputation:
52
|
RE: Resizing enemies?
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.
(This post was last modified: 05-06-2011, 12:34 PM by Apjjm.)
|
|
05-06-2011, 12:31 PM |
|
Shadowfied
Senior Member
Posts: 261
Threads: 34
Joined: Jul 2010
Reputation:
5
|
RE: Resizing enemies?
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?
(This post was last modified: 05-06-2011, 12:55 PM by Shadowfied.)
|
|
05-06-2011, 12:33 PM |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
RE: Resizing enemies?
yep
AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);
|
|
05-06-2011, 02:16 PM |
|
Shadowfied
Senior Member
Posts: 261
Threads: 34
Joined: Jul 2010
Reputation:
5
|
RE: Resizing enemies?
Where do I have to put it? In the void OnStart part?
|
|
05-06-2011, 02:17 PM |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
RE: Resizing enemies?
Put it in the same function that you spawn your enemy in.
|
|
05-06-2011, 03:09 PM |
|
Shadowfied
Senior Member
Posts: 261
Threads: 34
Joined: Jul 2010
Reputation:
5
|
RE: Resizing enemies?
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 |
|
Roenlond
Senior Member
Posts: 331
Threads: 3
Joined: Apr 2011
Reputation:
0
|
RE: Resizing enemies?
(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.
|
|
05-06-2011, 04:10 PM |
|
|