In my effort to try to increase FPS , I am trying to make certain map- entities invisible from certain points where from the map entities cant be seen by the Player.
- I have used clip_range - I have not done visiblity calculation compile ( leave it for the last)
Now my question is can do something like mapentityname.visible = OFF; in my C-script ?
Best Regards,
Sichlid
Re: Making Map -entities invisible
[Re: Sichlid]
#39296 01/16/0509:1901/16/0509:19
If you want them to become invisible after being a certain distance from the player you could do this:
Code:
action map_entity { while(1) { if vec_dist(my.pos,player.pos)>500//if the distance between me and the player is greater than 500 { my.invisible=on; } else { my.invisible=off; } waitt(16);//only run once a second } }