hedgewars/uScript.pas
changeset 9764 8dc9d268330f
parent 9752 656c511ab0f3
child 9788 af04cfdb1684
--- a/hedgewars/uScript.pas	Sat Dec 07 21:41:34 2013 -0500
+++ b/hedgewars/uScript.pas	Sat Dec 07 22:09:55 2013 -0500
@@ -1016,7 +1016,8 @@
                vgear^.FrameTicks:= lua_tointeger(L, 3);
                if (vgear^.FrameTicks < 1) or (vgear^.FrameTicks > 3) then
                    vgear^.FrameTicks:= 1;
-               lua_pushinteger(L, vgear^.Uid)
+               lua_pushinteger(L, vgear^.Uid);
+               AddChatString(#1+'[' + gear^.Hedgehog^.Name + '] '+vgear^.text)
                end
             end
             else