MIVIMEX Posted August 6, 2018 Share Posted August 6, 2018 Hello! I need a script for the animal, so that it move freely, wandered along one plane. (Did not fly!) With certain limits. Please, advise something! Thank you! Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 6, 2018 Share Posted August 6, 2018 That is a very large topic. I suggest learning about pathfinding. The basics of scripting pathfinding objects are not particularly difficult to understand, but I takes a lot of practice and experience to tune pathfinding critters and the landscape under them so that you have well-behaved roaming critters. Poorly optimized pathfinding objects and poorly designed landscapes will result in creatures that get stuck, do not stay within proper boundaries, and do not react well with avatars and other objects around them. 1 Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted August 7, 2018 Share Posted August 7, 2018 Another, cheaper method is to use raycasting or even just random positions within a radius and llSetPos in steps. You'd have to make sure the surrounding area doesn't have walls or other obstacles that would make the behavior too obvious. 1 Link to comment Share on other sites More sharing options...
Innula Zenovka Posted August 7, 2018 Share Posted August 7, 2018 9 hours ago, Wulfie Reanimator said: Another, cheaper method Is that cheaper than pathfinding? I ask because I do not know, but generally I suspect that trying to do things by script rather than let the simulator do them is going to be the least efficient way of proceeding. 1 Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted August 7, 2018 Share Posted August 7, 2018 1 hour ago, Innula Zenovka said: Is that cheaper than pathfinding? I ask because I do not know, but generally I suspect that trying to do things by script rather than let the simulator do them is going to be the least efficient way of proceeding. I'm very confident that doing some basic float math and setting a non-physical object's position is cheaper than creating an physics-enabled character and using navmesh with llWanderWithin. How much cheaper? No idea, and it depends on implementation. The difference could be insignificant, especially with how few/many of them exist at once. I don't know how that compares to raycasting either. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now