If KeyHit(7) And gold_m>=1000 And stone_m>=500 Then
new_house(6) For house.THouse = Each THouse
If house\status=0 Then
Repeat
start=MilliSecs()
For house.thouse=Each thouse
timer=MilliSecs()
If house\typ=5 Then
If timer-start=1000 Then gold_m=gold_m+1
EndIf
Next
mx#=MouseX()
my#=MouseY()
mxs#=MouseZSpeed()
If mxs#>0 Then TurnEntity house\mesh,0,90,0
PositionEntity house\mesh,EntityX(cursor3d),-2,EntityZ(cursor3d)
;types
If mWave=0 Then mwave=PlaySound(sound)
If KeyDown(200) Then MoveEntity cursor3d,0,0,-2
If KeyDown(200) And KeyDown(42) Then MoveEntity cursor3d,0,0,-4
If KeyDown(208) Then MoveEntity cursor3d,0,0,2
If KeyDown(208) And KeyDown(42) Then MoveEntity cursor3d,0,0,4
If KeyDown(203) Then MoveEntity cursor3d,2,0,0
If KeyDown(203) And KeyDown(42) Then MoveEntity cursor3d,4,0,0
If KeyDown(205) Then MoveEntity cursor3d,-2,0,0
If KeyDown(205) And KeyDown(42) Then MoveEntity cursor3d,-4,0,0
PointEntity cam,cursor3d
UpdateWorld
RenderWorld
DrawImage surface,0,0
DrawImage cursor,mx#,my#
DrawImage hous1,0,370
DrawImage gold,0,200
DrawImage stone,0,238
DrawImage wood,0,280
DrawImage gold,200,400
DrawImage stone,300,400
Text 0,0,"цель мисии:"
Text 0,5,"построить 5 задний!"
Text 50,215,":"+gold_m
Text 50,253,":"+stone_m
Text 50,295,":"+wood_m
If gold<200 Then Color 250,0,0
Text 250,400,"1000"
Color 250,250,250
Text 350,400,"1000"
Color 250,250,250
Flip
;types
Until KeyDown(28)
house\status=1
EndIf
Next
gold_m=gold_m-1000
stone_m=stone_m-500
EndIf
если убрать помеченое красным, все будет в порядке, а так пишет :Object does not exist:PositionEntity house\mesh,EntityX(cursor3d),-2,EntityZ(cursor3d), почему?