Not a member yet? Why not Sign up today
Create an account  

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
How can I lock the AI out of the sail controls?

#1
Hi, I wrote a simple LUA sail control script, which keeps the sails in the right angle and prevents capsizing. But my problem is that I cant set the ship with an AI up since the naval card overwrites my script. So I wanted to ask if there is any possibility to lock the AI out of the sail controls? Because if there is no so I must write my very own tall ship AI, what I don't really want since It takes very long.
Reply

#2
hmmm...
You might have to be a little creative about this one... maybe you don't even need the lua for the sails but a combo of acb's?
You might also look into lua propulsion. I don't know for a fact but assume 'I:TellAiThatWeAreTakingControl()' would include all ship propulsion so that could be an avenue as well.
Reply

#3
ACBs are great but they are sadly not able to calculate the angle between the wind and the ships forward vector and then turning the masts according to a polynomial function.
Thx for the tip, I will check the propulsion options out.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)