Dropped animal writs spawn animal?

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Leaf
 
Posts: 76
Joined: 01 Feb 2014, 16:47

Dropped animal writs spawn animal?

Post by Leaf » 15 Jan 2019, 04:14

Way back animal count on the server was a real lag problem. I'm glad to see that has been fixed. But I don't see why a dropped writ for 'sow' can't be made to spawn the model of a sow. Not sowdata which makes it move and think, just a stationary animal. I don't see it causing any more lag than buildings or containers which there are mass numbers of...

Still hunting for a way to make npcs right now, but I am guessing for this I just have to make a new ID for the animal except change the parentID to a movable object. Then find which .xml file? sql file? says to create a dropped item bag and change it to point at that model instead.

Am I warm? Hot? Way off?

ID>758</ID>
<ParentID>751</ParentID>
<Name>Sow</Name>
<IsContainer>0</IsContainer>
<IsMovableObject>1</IsMovableObject>
<IsUnmovableobject>0</IsUnmovableobject>

<ID>751</ID>
<ParentID>764</ParentID>
<Name>Wild animals</Name>

<ID>764</ID>
<ParentID>6</ParentID>
<Name>Animals-NPC</Name>

<ID>15</ID>
<ParentID>6</ParentID>
<Name>Movable objects</Name>


************
Upon reflection, the only items I know of that can be in your inventory and spawn a model when dropped are the horse and moose. They have no ai but players can interact with them, pick them up, kill them. So I'll want the same group that those two are in and not movable objects.

Return to Game mods