TeaScript Doesn't like negative values
Posted: 10 Oct 2016, 6:20
umm I get an error with my scripts when I multiply by a negative value like -1
I have a test script here that doesn't compile
basically I'm trying to make the npc have friction
I have a test script here that doesn't compile
basically I'm trying to make the npc have friction
Code: Select all
With NPC(sysval(Param1))
if char(1).facing = 1 Then
.Xsp = 1 'sgn(char(1).X - .X)*1
End If
.Xsp = .Xsp + (0.1 * -1)
End With