SetCannotControl function

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

SetCannotControl function

Post by rf900 »

I want to show up some friendly units but not let the player control them until a given turn.

I was using this function but I can still move the units, am I missing something?

//set the flag for player control of a unit. 0 for off, anything
else for on
SetCannotControl(id, value)
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: SetCannotControl function

Post by pipfromslitherine »

Yeah - I don't think that ever got implemented - I was actually looking to use it the other day! I will add it to the bug list (and update the docs!) as it would definitely be useful, but there are a goodly number of issues with it (e.g. not including them in the next unordered unit, etc).

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”