Stealth Theory - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8) +--- Thread: Stealth Theory (/showthread.php?tid=2539) |
Re: Stealth Theory - Alwarren - 04-29-2016 Among the new stuff in path 1.58 was a new function called setUnitTrait (and the associated getter). Among other things, it allows you to make units engineers or medics, but it also has a very interesting other usage: Stealth. The parameter camouflageCoef allows you to set a units stealthiness. The interpretation of this parameter is a bit weird: The lower it is, the better the camouflage is. By default, the value is 1 which means it uses the units natural camouflage. If you set it to zero, the unit is practically undetectable. It is worth noting however that this is a camouflage value; that means that if you move they will hear you. although they will not really be able to detect you. If you fire a weapon, they will instantly spot you if they have line of sight. Similarly, audibleCoef is for how much noise you make. With a bit of scripting magic, it should be easy to do things like
Re: Stealth Theory - Den - 04-29-2016 Just to add to what Alwarren has written, I think that Enhanced3den mod (or w/e it's called (Not sure if it's also displayed in Vanilla Eden but I imagine it's from that addon)) also allows you to edit some of those parameters via 'Attributes' aswell but I'm not too sure how well that works in a mission. You can also make certain units engineers etc. |