Hello,
I'm quite new for scripting, since a studied history and am working in Public Relations. But the Arma 3 Editor and die possibilites catched me, so im trying my best. I'm now encountering a problem, I realy can't find a solution for by myself. I'm trying to make an AI as intel via an addAction command. There are two possibilities: either the AI is alive or dead. Every case has its own intel text. AddAction and BIS_fnc_initIntelObject work just fine - seperated. But how can i combine these two?
Here ist the script (maybe just what I think it is...)
if (hasInterface) then
{
Terror addAction [
"Befragen",
{
[Terror, "RscAttributeDiaryRecord", ["Befragung", "Ok ok, ich rede! Kein Grund, mir die Waffe an den Kopf zu halten! Wir konnten mit der Kiste nichts anfangen, also haben wir Sie in die <marker name='marker_1'>Mine östlich von Tarawah</marker> gebracht. Und jetzt lasst mich in Ruhe!"]]
spawn BIS_fnc_initIntelObject,
deleteMarker "marker_0",
"marker_1" setMarkerType "mil_objective",
"marker_1" setMarkerColor "ColorRed"
},
[], 10, true, true, "", "isPlayer _this && { _this distance _target < 2 } && (Alive Terror);"
];
};
if (hasInterface) then
{
Terror addAction
[
"Durchsuchen",
{
[Terror, "RscAttributeDiaryRecord", ["Durchsuchung", "Die Leiche hat in einer der Manteltaschen in Handy gehabt. Eine der letzten Nachrichten ging an einen lokalen Anführer: Vor Ort wusse niemand etwas mit der Kiste anzufangen. Daher wurde sie dem Anführer überstellt. Seinen Sitz hat er in einer <marker name='marker_1'>Mine östlich von Tarawah</marker>."]]
spawn BIS_fnc_initIntelObject,
deleteMarker "marker_0",
"marker_1" setMarkerType "mil_objective",
"marker_1" setMarkerColor "ColorRed"},
[], 10, true, true, "", "isPlayer _this && { _this distance _target < 2 } && (!Alive Terror);"
];
};
Maybe is missunderstood the entry for the BIS_fnc_initIntelObject command, but I would really appreciate a little help. Thanks in advance!