Here is an example taken directly from the code of my current game:
this code works:
this code does not:
does it in both blitzplus and blitz3d (haven't tried it in blitzbasic but probably not much point testing that one..)
this code works:
If OtherUnit\IsPlayer Then AddSoundToPlayList(OtherUnit.UnitObject,"body impact") Else AddSoundToPlayList(OtherUnit.UnitObject,"impact") endIf
this code does not:
If OtherUnit\IsPlayer Then AddSoundToPlayList(OtherUnit.UnitObject,"body impact") Else AddSoundToPlayList(OtherUnit.UnitObject,"impact")
does it in both blitzplus and blitz3d (haven't tried it in blitzbasic but probably not much point testing that one..)