Jump to content

Terra

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Posts posted by Terra


  1. ==Reasonably long, but clear, post ahead!==

    *I pretty much have two questions, one about arty and the SOM and one quick one about the Ambient Combat Module.*

    I have MLRS working for me as arty for one time only (Ill show you the code I put in) but after that it isn't available. Now {USI}_Zombie said that you can, basically, pin the seperate SOM requests to "radio alpha, radio bravo" and so on. Where would I put this code you wrote?

    {USI}_Zombie: The first time you want to use them, just do it with a trigger activated by gamelogic. For subsequent requests yes, you need a radio trigger. I made a radio trigger for each request seperately ie:
    [/quote]
    [b][color="red"]radio bravo[/color][/b] [["transport"], player] call BIS_SOM_addSupportRequestFunc;
    [b][color="Red"]radio charlie[/color][/b] [["aerial_reconnaissance", player] call BIS_SOM_addSupportRequestFunc;

    So what I am asking is, how do I set up a radio trigger and where (what exactly) would I put that code? Thanks!

    Also heres the code I used to get it working for one time only using the trigger I am running for SOM that also gives me, UAV recon and a huey transport choppa. :)

    Trigger code ("condition" field):

    this; som1 getVariable "initDone"

    Trigger code ("on act" field):

    [["transport","aerial_reconnaissance"], player] call BIS_SOM_addSupportRequestFunc; som1 setVariable ["TSS_vehicle_custom", chp1; 
    [["artillery_barrage"], player, [[]]] call BIS_SOM_addSupportRequestFunc; som1 setVariable ["TSS_vehicle_custom", arty1;

    In the above code you can see I named the chopper and arty, chp1 and arty1 respectively, I.e. I stuck that in the units "name" field and in the above code, so that it has to recognise them. The arty wouldnt work until I randomly tried naming it, as I had done to make the evac chopper work properly. The size of the trigger is 200, covering pretty much the entire base I have built. It was covering the entire map but I made it smaller as I am going to try using several different triggers at the same time now, as I want to try this "radio trigger" business :).

    Also a quick question about the Ambient Combat Module; I have stuck the code in the modules itselfs initiation 'field' thus:

    ACM code (Initiation field):

    waitUntil {!isNil {BIS_ACM getVariable "initDone"}}; 
    waitUntil {BIS_ACM getVariable "initDone"}; 
    [1, BIS_ACM] call BIS_ACM_setIntensityFunc; 
    [bIS_ACM, 300, 600] call BIS_ACM_setSpawnDistanceFunc; [["USMC", "CDF", "RU"], BIS_ACM] call BIS_ACM_setFactionsFunc; [0, 0.6, BIS_ACM] call BIS_ACM_setSkillFunc; 
    [0.2, 0.5, BIS_ACM] call BIS_ACM_setAmmoFunc; 
    ["ground_patrol", 1, BIS_ACM] call BIS_ACM_setTypeChanceFunc; ["air_patrol", 0, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

    Now I think its working but as I have the secops module going aswell (which is giving me missions) I cant tell for definately if its working, now I am pretty sure it is but I just wanted to see if that code is all well and proper and that having it only in the modules "init" field is enough.

    Thanks! Cant wait for more fun! :bounce3:

×