toggle logic ??

Posted By: dracula

toggle logic ?? - 07/16/08 12:05

Hi

In a tutorial to toggle a HUD, it calls a function that contains the C Script code below.

cross_hair.visible = (cross_hair.visible == off) // C Script


In C++ this would be coded thus:
cross_hair.visible = !(cross_hair.visible) //C++

In Lite-C what would the toggle logic be please ?


set(cross_hair,VISIBLE) = ??

Thanks
Posted By: Quad

Re: toggle logic ?? - 07/16/08 12:28

toggle(cross_hair,VISIBLE);

easy isnt it ? laugh
Posted By: dracula

Re: toggle logic ?? - 07/16/08 12:44

Thanks Quad !
© 2023 lite-C Forums