vargatom Posted December 8 Share Posted December 8 Hi everybody, I need a help to tell my bots if they arrived to a waypoint stand some seconds there then continue for your way. Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 9 Moderators Share Posted December 9 Use Paththrough Navigation Navigation = { stop = { navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); }, }, }, /bot waypoint_setproperty paththrough Navigation_PT:stop vargatom 1 Quote Link to comment Share on other sites More sharing options...
vargatom Posted December 9 Author Share Posted December 9 Thank for help! With this settings BOT just waits and dosen't move after 3 seconds Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 9 Moderators Share Posted December 9 Navigation = { stop = { EvalFunc = function() { return !this.StopTime || GetTime()-this.StopTime > 2; }, navigate = function() { this.Goto(this.Bot.GetPosition()); sleep(3); this.StopTime = GetTime(); }, }, }, vargatom 1 Quote Link to comment Share on other sites More sharing options...
vargatom Posted December 10 Author Share Posted December 10 Hi, got this message Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 11 Moderators Share Posted December 11 The end of EvalFunc }, should be on line 79 after return, not on line 86. vargatom 1 Quote Link to comment Share on other sites More sharing options...
vargatom Posted December 11 Author Share Posted December 11 (edited) Hi, fixed it. Sry! When Bot reached this waypont is a newer message again. Edited December 11 by vargatom Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 12 Moderators Share Posted December 12 gm scripts are case-sensitive. There must be Goto, not GoTo. Why didn't you copy the function from this page and paste it into your script (Ctrl+C, Ctrl+V) ? vargatom 1 Quote Link to comment Share on other sites More sharing options...
vargatom Posted December 14 Author Share Posted December 14 I thought this method is not beneficial for the script operation. I have anothers question in this subject When I follow a BOT in spectator mode and BOT sprints why dosen't show that his stamina is running out? Are real values visible in spectator mode? Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted December 16 Moderators Share Posted December 16 On 12/14/2024 at 5:06 PM, vargatom said: When I follow a BOT in spectator mode and BOT sprints why doesn't show that his stamina is running out? This is not related to bots. The same problem happens if you watch human players. There are a lot of bugs in the omnibot mod because it is based on the original game from year 2001. The spectator stamina is displayed correctly in newer mods (legacy, nitmod, noquarter, silent). It does not work in jaymod and etpub. vargatom 1 Quote Link to comment Share on other sites More sharing options...
vargatom Posted 15 hours ago Author Share Posted 15 hours ago Can the current stamina value of the BOT be queried during game? Quote Link to comment Share on other sites More sharing options...
Moderators palota Posted 14 hours ago Moderators Share Posted 14 hours ago You cannot query the current stamina. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.