Why two times basewaypoint.isplaceable = false?

HI There,

I could not understand requirement of two time of “baseWaypoint.isPlaceable = false”

Hi Bhavesh,

What do you mean by “requirement”? Do you mean you don’t understand the idea behind setting isPlaceable to false?

We check that variable in another method to determine whether we can spawn a tower on the cube.

See also:

Hi Nina,

I mean in the snapshot i attached, there was two lines.
baseWaypoint.isplaceable = false;
Why it is required two times while each performs same tasks.

I see. The second one is indeed redundant as we do not change the value of baseWaypoint.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.