EDIT: Ok.. I gave it a good run..lol..
I'm going to give Mandos another shot for a while..
now that I know it needed to be in an sqf and not an sqs.
that should help..lol..
but i left off.. pretty much exaclty as you left it.. I tried a lot..
nothing went well..lol.. Kept paying me at mission start.
Heya Mando..
I get what you were saying to do more now.
So I rearranged things to be what i think you intended me to do.
The 1st script below moves the trigger to the "helicrash" (which is the object uh60 wrecks) name.
It does so at the last line of the 1st script below.
The trigger is named "crash"
The trigger is activated on blufor present.
which runs the script [] exec "foundcrash.sqf"
the foundcrash script is the 2nd script down.
wether i use your original or my edited version
they both error.
randomcrashsite.sqs
? !isServer: exit
_randomcrash=random 1
_randomcrashnum=round _randomcrash
_rantime = random 5
?(_rantime < 120):_rantime=_rantime+5
~_rantime
?_randomcrashnum==1:HeliCrash setdir random 360;HeliCrash setpos [((getmarkerpos "CrashSite") select 0) + random 200 - random 200 ,((getmarkerpos "CrashSite") select 1) + random 200 - random 200];CrashmarkerPOSVAR = getmarkerpos "CrashSite";publicvariable "CrashmarkerPOSVAR";"Crashmarker" setmarkerpos CrashmarkerPOSVAR;CrashflagPOSVAR = getmarkerpos "CrashSite";publicvariable "CrashflagPOSVAR";"Crashflag" setmarkerpos CrashflagPOSVAR;crash setPos getPos helicrash;
exit
The original was paying me double and erroring, so i slimmed it down to this..
foundcrash.sqs
_trigger_list = list crash (also tried as crash = list crash)
{
{
if (vehicle _x != _x) then
{
if (isPlayer _x) then
{
if (alive _x) then
{
SPON_playerCashBalance = SPON_playerCashBalance + 5000;
player groupchat format ["For your efforts in finding the crash site you have been rewarded $5000! $%1 total in pocket
cash",SPON_playerCashBalance];
};
} forEach crew _x;
};
};
} forEach _trigger_list; (also tried as foreach crash)
exit;
but this is giving me the same errors the original was giving me..
error missing {
or
error missing }
or
} foreach _trigger_list; error missing {
or
error, type array expected object. ( when I put "crash = list crash" in the trigger).
well.. at least it's paying too...lol..
should I have something else in the trigger other than what activates it and what script to run?
do I need to do something like _trigger_list = list crash?
It's all new to me.. been digging around for info on trigger lists and thats all i could really narrow it down to.
well day idk..5? on this crap..up all nite again.....
lil help plz..