Select A And B
вопрос к гуру - выделенная строчка это не нарушение синтаксиса блитза?
вот рабочая функция:
Function MoveBox(mplr,mBox,tBox)
If EntityCollided (mplr, tBox) Then
cu=pla/100
A=EntityX(mplr)-EntityX(mbox)
B=EntityZ(mplr)-EntityZ(mbox)
If A=0 And B<0 Then TranslateEntity mBox,0,0,cu
If A=0 And B>0 Then TranslateEntity mBox,0,0,-cu
If B=0 And A>0 Then TranslateEntity mBox,-cu,0,0
If B=0 And A<0 Then TranslateEntity mBox,cu,0,0
EndIf
End Function