Changing mesh by button press

Blitz3D Forums/Blitz3D Beginners Area/Changing mesh by button press

I've got a quick question..

How can I quickly change a model to another model by pressing a button? I would like to think it would be simple like:

LoadMesh("yadadada.b3d")

While Not KeyHit(1)
If MouseHit(1) Then LoadMesh("blahblah.b3d")
EndIf


But it's not, so that's where I'm stuck.. Is there an example in B3D that I missed?

Thanks,
Chad