CaptainPStar / co10_Escape

Official Github repository of A3 mission co10_Escape.
65 stars 47 forks source link

fn_addIntel.sqf needs edit #99

Closed AKA-TiTAN closed 3 years ago

AKA-TiTAN commented 3 years ago

_chance is always 10%!

private _chance = missionnamespace getvariable ["A3_Param_IntelChance",10];

needs changing to

private _chance = missionnamespace getvariable ["Param_IntelChance",10];

also does the } and the end of the script need to be };

the above changes work ok for me.

CaptainPStar commented 3 years ago

The missing colon is intentional. The param name is intentional.

AKA-TiTAN commented 3 years ago

with my very limited scripting knowledge i still find this strange, when i changed the % chance in the params it didnt seam to do anything it was still hard to find intel on the bodies. i even added a 90% chance!. i can see that the params are stored in the mission namespace as variables and the param is called Param_IntelChance not A3_Param_IntelChance. as soon as i corrected this then the intel spawned on lots more AI.

CaptainPStar commented 3 years ago

You are right with that A3E works not (in some cases) and Param_IntelChance works every time but keep in mind this is a dev version and not meant to be played. The variable has a different name because the param system gets a rewrite changing variable names. Also when CBA Settings is used, the variable actually IS changed by the param (because CBA uses A3E prefix).

AKA-TiTAN commented 3 years ago

Ah ok that makes sense. thought i was going mad!