Author Topic: [invalid] setUnitPosition crash  (Read 615 times)

treba

  • Guest
[invalid] setUnitPosition crash
« on: 10 October 2012, 16:45:08 »
hey,

everytime i try to use the setUnitPosition function, it gives me the following:
Code: [Select]
[2012-10-10 18:42:36] *ERROR* In [game.cpp::update Line: 1762] Error [Lua error: Can not get vec2i from Lua state, value on the stack is not a table

Lua Stack:
-1: Number: 10.00
]
« Last Edit: 10 October 2012, 17:48:16 by treba »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: setUnitPosition crash
« Reply #1 on: 10 October 2012, 16:46:28 »
Please post how you are calling it in your script. (need to see the parameter data types)

treba

  • Guest
Re: setUnitPosition crash
« Reply #2 on: 10 October 2012, 17:47:58 »
... rechecked it again and it was a typo :look:

sorry