entity doesn't exist?

Blitz3D Forums/Blitz3D Beginners Area/entity doesn't exist?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Change this:
fence = LoadMesh("fence.b3d")
fence_tex = LoadTexture("fence.bmp")
EntityTexture fence,fence_tex
PositionEntity fence, 38,11,120

To this:
fence = LoadMesh("fence.b3d")
If fence=0 Then RunTimeError "Cannot find model file"
fence_tex = LoadTexture("fence.bmp")
If fence_tex=0 Then RunTimeError "Cannot find texture file"
EntityTexture fence,fence_tex
PositionEntity fence, 38,11,120