Jump to content

Photo

Create AI Package where time is dependent variable

package ai

  • Please log in to reply
2 replies to this topic

#1
jedp15

jedp15

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,440 posts

I'm trying to create a travel package where an NPC goes to a location and plays an idle, and once they've played the idle, it completes and they move onto their next package. The problem I have is they won't complete it unless I've given the package enough time.

I want the package to be governed by the travel and action only, and take however much time it needs. Some people play on different timescales anyway so it makes no sense to define the time it will take since it will be different for everyone.



#2
dylbill

dylbill

    Faithful poster

  • Supporter
  • PipPipPipPip
  • 1,346 posts

Maybe you can use the condition NPC IsMoving == 0 AND NPC IsTurning == 0 on the next package, so it won't start until your NPC stops moving. I'm not sure if that will work but it might. 

 

You could also make the next package be a wait one, which waits in real time seconds I believe, that way timescale is irrelevant.



#3
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 8,844 posts

Wondering if a global variable can be used.  Set to one value at package start, set to another value on package end.  Used as a condition to prevent or allow other packages as needed.







Also tagged with one or more of these keywords: package, ai

Page loaded in: 1.053 seconds