I get an error when this happens
If t#=6 Then
s.flash=New flash
s\entity=CopyEntity(flash)
s\alpha#=1
RotateEntity s\entity,EntityPitch(turret),EntityYaw(turret),EntityRoll(turret)
PositionEntity s\entity,EntityX(turret),EntityY(turret),EntityZ(turret)
MoveEntity s\entity,0,2.5,0
EndIf
If t#=7 Then
; right here
s.shot=New shot
; above line
s\entity=CopyEntity(shot)
s\scale#=.5
RotateEntity s\entity,EntityPitch(turret),EntityYaw(turret),EntityRoll(turret)
PositionEntity s\entity,EntityX(turret),EntityY(turret),EntityZ(turret)
MoveEntity s\entity,0,2.5,4
t#=0
EndIf
For s.flash=Each flash
EntityAlpha s\entity,s\alpha#
s\alpha#=s\alpha#-.1
If s\alpha# <=0 Then FreeEntity s\entity :Delete s
Next
For s.shot=Each shot
x=x+1
MoveEntity s\entity,0,0,.5
EntityAlpha s\entity,s\scale#
s\scale#=s\scale#+.05
If s\scale# >=3 Then FreeEntity s\entity :Delete s
Next
it says "variable type mismatch"
what does this mean?
If t#=6 Then
s.flash=New flash
s\entity=CopyEntity(flash)
s\alpha#=1
RotateEntity s\entity,EntityPitch(turret),EntityYaw(turret),EntityRoll(turret)
PositionEntity s\entity,EntityX(turret),EntityY(turret),EntityZ(turret)
MoveEntity s\entity,0,2.5,0
EndIf
If t#=7 Then
; right here
s.shot=New shot
; above line
s\entity=CopyEntity(shot)
s\scale#=.5
RotateEntity s\entity,EntityPitch(turret),EntityYaw(turret),EntityRoll(turret)
PositionEntity s\entity,EntityX(turret),EntityY(turret),EntityZ(turret)
MoveEntity s\entity,0,2.5,4
t#=0
EndIf
For s.flash=Each flash
EntityAlpha s\entity,s\alpha#
s\alpha#=s\alpha#-.1
If s\alpha# <=0 Then FreeEntity s\entity :Delete s
Next
For s.shot=Each shot
x=x+1
MoveEntity s\entity,0,0,.5
EntityAlpha s\entity,s\scale#
s\scale#=s\scale#+.05
If s\scale# >=3 Then FreeEntity s\entity :Delete s
Next
it says "variable type mismatch"
what does this mean?