Making Head Visible and Invisible

Nope, nevermind. I ran into a problem…

How do I apply this script in the logic bricks?

To apply it you use a Python Controller. Connect it an Always sensor or something. If you want it to run every frame don’t forget to check True Pulse [···]

@monster: there are better ways to do this yes, but that is not too costly…especially if you do this test only while the camera changes states or is being zoomed in or something…it costs next to nothing…on that note, you would probably cry if you saw all my code :slight_smile: on a large project you sometimes cannot get away with not using these checks, and it costs far far less than a near sensor.

As for the “camera”…

Do I replace it with the camera name or do just leave it?

the camera name in the script needs to be the same as the name of the in game camera…they must match. and ‘head’ is just a place holder name as well…it is the owner/controller or whatever you want to test against.

Alright, thanks…