What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

wormi

New Member
Joined
Sep 20, 2015
Messages
4
Reaction score
0
Hi all - sorry i am new to this so i had a question: when i create a path that goes over the sea, the character swims under water and then drowns! so i need my character to swim to my island and back so any help will be appreciated. i noticed that in the auto quest plugin all the lakes and rivers the charcter crosses he swims over water and when needed for quest dives. so all i need is my character to swim ontop.
 
Hi, you can create path where each points will have Z >= 100,
or between moves (gpspremove, navmeshpremove,etc) you can check something like:
Code:
if (host.me.isUnderWaterBreath && host.me.underWaterBreathTime < 20000)
            {
                try
                {
                    host.SwimUp(true);
                    while (host.me.isAlive() && host.me.isUnderWaterBreath)
                        Thread.Sleep(10);
                }
                finally
                {
                    host.SwimUp(false);
                }
            }
 
Back
Top