Visibility

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Visibility

Post by enric »

Well this is difficult to explain, I'll try
When you load a turn before the replay begins, you are able to see in the map some objects that when its time to take the turn they are not visible.

Is a way to define an object as visible only for one side?
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Visibility

Post by pipfromslitherine »

The HIDES tag will hide an object until it is actively seen by each side. Is that what you mean?

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Visibility

Post by enric »

This, I think wont do the job.

The situation is, during turn 1 the player may place the mines and he see all of them. When a new turn starts (2) I put all mines at SetObjectScale(id, 10); or less, so they are not visible until some unit enters the tile (then I recover the scale to 100%). The problems come when in the immediate turn (2, the opponent) a greyed map is visible and the mines are still visible, so the opponent has the possibility to see the placement for a while, when he starts really the 2 turn they are hidden and it works normal is just during the part where the opponent has sight on the last opponent turn.
Post Reply

Return to “Battle Academy 2: Modders Corner”