Ответ: LUA and BMAX - проблема
Type TypeMonster
Field script:TLuaScriptEngine
Fiels X:int , Y:int, Speed:int, Ang:int
Method Update()
script.CallFunction("Update", True)
End Method
Method Move()
X = X + (Speed * Cos(Ang))
Y = Y + (Speed * Sin(Ang))
End Method
Function Create_Monster:TypeMonster ()
Local Monster:TypeMonster=New TypeMonster
Monster.script = LoadScript("1.lua")
End Function
End type
|
вот код примерный. как запустить Move из луа?
Последний раз редактировалось Данил, 22.07.2008 в 02:34.
|