Jump to content

Jazz

Members
  • Posts

    265
  • Joined

  • Last visited

Posts posted by Jazz

  1. Playing with waypoints after checking out Nick's tutorial (Thanks Nick!) and thought I'd play with them using a different method.

    With this script you can use any entity as a waypoint, including the player, barrels, pivots, etc. Remember the larger the entity the larger the range detection must be.

    They can be a child of anything or not a child. Just don't make it a child of a moving entity.

    They will go in order of targets entered or if Random roaming is checked it will be (duh) random.

    Make sure to create a navmesh. So far I've only tested with 5 entities roaming simultaneously.

    Fun to mess around with tongue.png

     

    Edit: Added simple smoothing

    post-12583-0-15445100-1424376007_thumb.png

    AIwaypoint.lua

    • Upvote 4
  2. I think beo6 is right. It's mob AI so you should pick from mob to player.

     

    if (world:Pick(posMob+Vec3(0,1.2,0), posPlayer+Vec3(0,1.6,0), pi, 0, true)) == false then

    return 0

    end

     

    -- did we hit our target?

    if pi.entity == self.entity then

    return 1

    end

  3. I actually think it's more prominent in code, and that's why you don't really see as much code. You also have to remember that a lot of Leadwerks code is Leadwerks specific and even game specific. I know a lot of people want more code, but it's hard to provide "code" to do a simple task when it could involve multiple files. Code also isn't as plug and play as assets in general.

     

     

     

    I'm not sure why people believe that this really the case. There are tens of thousands of assets that can be brought into the editor, and many of these assets have similar styles. You will only get the same exact styles by the same artist, so a game with multiple artists will automatically have differences. Also, you can always edit the textures since that tends to be the biggest stylistic difference of models. If someone gave me an art asset, I guarantee you I can find compatible pieces on multiple sites unless it's something super obscure.

     

    Yeh problem is I can't find any assets in the style I need. Will have to do it myself. Also, sounds like a tall order Nick, but I trust in your knowledge ;D

  4. I just want to say I love this community. With people Like Aggror, Rick, Einlander, Shadmar, tjheldna, Roland, Macklebee, and can't forget the great YouGroove ;D, and so many others (sorry memory is gone atm) it is very exciting thinking of the game possibilities.

     

    Also, Josh is one very intelligent fellow and will get Leadwerks to where it needs to go. Kudos Josh!

     

    Leadwerks is so damn fun to use and the possibilities are endless. Now if I could just get my modeling skills up to par! Hmm, can anyone model a nice sailor in shorts a la Gta Vice City? :)

    • Upvote 3
×
×
  • Create New...