Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    5
    Rep Points
    0
    Rep Power
    1

    Ambient/Random Waypoints

    I want to know how or if it is possible to create an ambient set of patrols or waypoints where the set actor(s) randomly wander between each point and make them look like they are wandering instead of patrolling back and forth like a soldier.

    For example, populating a village or city and making it look alive with civilians and soldiers just going about their business.

  2. #2
    Moderator Level 22 Dilust's Avatar
    Join Date
    Aug 2007
    Location
    Italia
    Posts
    2,701
    Rep Points
    42
    Rep Power
    8
    Yes, you can.
    First I would suggest you to create a sub-group of waypoints. In this group you will put only the waypoints dedicated to your village.
    I'd suggest that because you will need to create a very large ammount of paths.
    When you create a single path, as you just know, you must link each waypoint to another. You probably do not know that you could link a single waypoint to multiple other waypoints.
    For example i have a path composed by waypoints 1->2->3 now i could link the waypoint 3 with the waypoint path 4->5->6 and with the 7->8->9 path and so on. The engine will chose one of the alternative path randomly.
    Do not forget that you could also link some commands to each waypoint, like a wait command, a teleport command or an actor to waypoint command to move a certain unit between waypoints.

    So, you can create what you want but you must remember that if an unit see an enemy the AI will force it to engage. And maybe this could rouin your scenario.
    By prevailing over all obstacles and distractions, one may unfailingly arrive at his chosen goal of destination. Cristoforo Colombo
    Visit my Soldiers and Fow mods collection

  3. #3
    Member Level 9 bassmaniac's Avatar
    Join Date
    May 2009
    Location
    France
    Posts
    509
    Rep Points
    61
    Rep Power
    5
    Hello!
    I'm not a good scripter but i know you can write some "actions" for your characters in your trigger's script: talk, pauses, sleep, etc..

    To give the random feeling, You can link some waypoints together to make changes, (example if you link the waypoint 0 to 1, 2, and 3, then the character will go first to 1, after finish his pathway, he will go to waypoint 2 etc..
    if you multiply the links on all the waypoints, your character seems to random his pathway..

    This game crually need new 3d characters like womens, childs, workers, olds... and new animations for them I think that all this should create more life in towns and villages
    Hope it help..
    Regards.
    Bass

    Edit: During i wrote, Dilust give you a better answer to your question..
    Last edited by bassmaniac; 07-07-2012 at 11:43.

  4. #4
    Member
    Join Date
    Jul 2012
    Posts
    5
    Rep Points
    0
    Rep Power
    1
    Quote Originally Posted by Dilust View Post
    The engine will chose one of the alternative path randomly.
    Well the engine does a horrible job of picking evenly. 7/10 times it will send 8 one way and 2 the other, and the lower the actor number is one lane will not even be chosen. So if there were 2 men patrolling, instead of them splitting up both will choose one and leave the other empty, which ruins the sole purpose of making 2 lanes! Is there any possible way to gauge this?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •