Hi dear community,
After weeks and weeks of tries, i'm still only able to make very basic script ( opening a crate or refuelling a generator to switch light on for example).
I've tried to make a script that would allow the player to be considered "friendly" by ennemy AI after he found an ennemy uniform (this being managed by a variable). For those who know the "Commandos" games serie, it is supposed to work like the "Spy" character., stealing a german uniform and wandering in the ennemy coumpound undetected.
I suppose I have to use the "require" and/or "include" script command (or maybe the "switchscript (e,str)" ) command to switch AI behaviour between Ai_Neutral and Ai_Soldier scripts according to the "uniform" variable value but I just can't find out how it works...
I'm OK with the script attached to the uniform (collect item, revert "has_uniform" variable value from 0 to 1, destroy the uniform etc..) but the disguise script is far beyond my skills at this time...
I suppose the script's structure would be :
check the "hasuniform" value
if "hasuniform" == 0 then run Ai_soldier script
if "hasuniform" ==1 then run Ai_Neutral script
if the player is seen killing an ennemy while in disguise, then "hasuniform" == 0
But all my attempts pathetically failled...
I would be immensively gratefull if some of you, talented scripters, could give me some help.
Cheers