Types Problem

Blitz3D Forums/Blitz3D Beginners Area/Types Problem

Happy Llama(Posted 2012) [#1]
When I try to run my code I get the error "Entity does not exist" and it highlights this line of code.


a\mesh = CopyEntity(snowball)



I don't know why. It was working before. Here's the rest if you need it:




Matty(Posted 2012) [#2]
In your function "ThrowSnowballs" you refer to the entity 'snowball' which is not defined in the scope of this function....you either need to pass the snowball handle to the function or make snowball a global variable.


Happy Llama(Posted 2012) [#3]
Thank you!