News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: lua help again  (Read 1571 times)

0 Members and 1 Guest are viewing this topic.

Offline Goatth

  • Count Grishnackh
  • Jr. Member
  • **
  • Posts: 27
  • Gender: Male
    • View Profile
lua help again
« on: January 26, 2015, 06:42:35 PM »
here's again.. hope this is not considered flooding :wacko:
what is the command to add the strafe code?

example:
Code: [Select]
if IsButtonBeingPressed(10, 0) while IsMoving then do
     ExecuteActionNode("/Global/G_Striker_A/Default_KEY/ExecuteNodes/LocomotionOverri:de/Combat/CombatBasic", "Act/Anim/G_Striker_A.act")
 end
when i try to compile i get that:
luac: lua.lua:48: 'then' expected near 'while'

someone?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: lua help again
« Reply #1 on: January 26, 2015, 08:42:04 PM »
Check this mod out. It's open source.

Offline Goatth

  • Count Grishnackh
  • Jr. Member
  • **
  • Posts: 27
  • Gender: Male
    • View Profile
Re: lua help again
« Reply #2 on: January 26, 2015, 08:46:00 PM »
thank's A LOT  daboss.. you're a boss  :D