Jump to content

Kolmain

Member
  • Content Count

    519
  • Joined

  • Last visited

  • Medals

Everything posted by Kolmain

  1. The player has the ability to establish 1 camp per rank he has achieved. (IE: PVT gets 1, CPL gets 2, SGT gets 3 etc) The player must place a flag of his faction (which will be available) in order to call for an AI squad to come and reinforce the camp. The script I can handle writing and even the calculations for rank dependency I can handle. The hard part is how the player will be presented with the script? Im not sure if the player should have an action the whole time, or maybe a radio action? Players will be on opposite sides, CDF+USMC and RU.The solution needs to be the most CPU compatable since the server mission will be MSO (high number of active scripts). So, what do you guys think?
  2. It's a continous check?
  3. Kolmain

    ASR AI Skills

    Can this run serverside?
  4. I check this thread on the hour, every hour lol
  5. Kolmain

    Arma 3 Officially Announced!

    Amazing BIS, outlet amazing.
  6. I need to detect if the player is in a civilian vehicle? Any ideas?
  7. Nope, vehicles are the side of the commander :( anyone know how to use CfgVehicles?
  8. I created a script to chose a random building and create a target in the building (east man). If I set him to a random building pos, nothing happens, if I run crb_HousePos he dies and if I run the house patrol script on him nothing happens? This is one of the most bazare things I've seen in arma, but I just need this high-value target to be in a random room in the building so hes not standing on the roof? Im not worried about patroling, actually he can just hide in the room but I cant get him to be anywhere but the roof! Any ideas? Note: Im testing on Lingor, meaning there are some custom buildings, perhaps theyre not indexed? But it still does not work with A2/OA buildings either :(
  9. No, the copy paste took out all of the spaces... odd, I found the problem, createUnit doesnt have a handler.
  10. This code still wont position him... fnc_pick_housepos = { [size=2][color=#808080][size=2][color=#808080]_house[/color][/size][/color][/size][size=2] = [/size][size=2][color=#ff0000][size=2][color=#ff0000]getPos[/color][/size][/color][/size][size=2] [/size][size=2][color=#0000ff][size=2][color=#0000ff]_this[/color][/size][/color][/size][size=2] [/size][size=2][color=#ff0000][size=2][color=#ff0000]nearestObject[/color][/size][/color][/size][size=2] "Building"; [/size][size=2][color=#808080][size=2][color=#808080]_posarray[/color][/size][/color][/size][size=2] = []; [/size][size=2][color=#808080][size=2][color=#808080]_rndpos[/color][/size][/color][/size][size=2] = []; [/size][size=2][color=#808080][size=2][color=#808080]_pos[/color][/size][/color][/size][size=2] = []; [/size][size=2][color=#808080][size=2][color=#808080]_cnt[/color][/size][/color][/size][size=2] = 0; [/size][size=2][color=#0000ff][size=2][color=#0000ff]while[/color][/size][/color][/size][size=2] {[/size][size=2][color=#ff0000][size=2][color=#ff0000]format[/color][/size][/color][/size][size=2] ["[/size][size=2][color=#0000ff][size=2][color=#0000ff]%[/color][/size][/color][/size][size=2]1", [/size][size=2][color=#808080][size=2][color=#808080]_house[/color][/size][/color][/size][size=2] [/size][size=2][color=#ff0000][size=2][color=#ff0000]buildingPos[/color][/size][/color][/size][size=2] [/size][size=2][color=#808080][size=2][color=#808080]_cnt[/color][/size][/color][/size][size=2]] [/size][size=2][color=#0000ff][size=2][color=#0000ff]![/color][/size][/color][/size][size=2]= "[0,0,0]" } [/size][size=2][color=#0000ff][size=2][color=#0000ff]do[/color][/size][/color][/size][size=2] { [/size][size=2][color=#808080][size=2][color=#808080]_pos[/color][/size][/color][/size][size=2] = [/size][size=2][color=#808080][size=2][color=#808080]_house[/color][/size][/color][/size][size=2] [/size][size=2][color=#ff0000][size=2][color=#ff0000]buildingPos[/color][/size][/color][/size][size=2] [/size][size=2][color=#808080][size=2][color=#808080]_cnt[/color][/size][/color][/size][size=2]; [/size][size=2][color=#808080][size=2][color=#808080]_posarray[/color][/size][/color][/size][size=2] = [/size][size=2][color=#808080][size=2][color=#808080]_posarray[/color][/size][/color][/size][size=2] + [[/size][size=2][color=#808080][size=2][color=#808080]_pos[/color][/size][/color][/size][size=2]]; [/size][size=2][color=#808080][size=2][color=#808080]_cnt[/color][/size][/color][/size][size=2] = [/size][size=2][color=#808080][size=2][color=#808080]_cnt[/color][/size][/color][/size][size=2] + 1; [/size][size=2][color=#ff0000][size=2][color=#ff0000]sleep[/color][/size][/color][/size][size=2] 0.01; }; [/size][size=2][color=#808080][size=2][color=#808080]_rndpos[/color][/size][/color][/size][size=2] = [/size][size=2][color=#808080][size=2][color=#808080]_posarray[/color][/size][/color][/size][size=2] [/size][size=2][color=#ff0000][size=2][color=#ff0000]select[/color][/size][/color][/size][size=2] ([/size][size=2][color=#ff0000][size=2][color=#ff0000]floor[/color][/size][/color][/size][size=2] ([/size][size=2][color=#ff0000][size=2][color=#ff0000]random[/color][/size][/color][/size][size=2] ([/size][size=2][color=#ff0000][size=2][color=#ff0000]count[/color][/size][/color][/size][size=2] ([/size][size=2][color=#808080][size=2][color=#808080]_posarray[/color][/size][/color][/size][size=2])))); [/size][size=2][color=#0000ff][size=2][color=#0000ff]_this[/color][/size][/color][/size][size=2] [/size][size=2][color=#ff0000][size=2][color=#ff0000]setpos[/color][/size][/color][/size][size=2] [/size][size=2][color=#808080][size=2][color=#808080]_rndpos[/color][/size][/color][/size][size=2]; [/size][size=2][color=#008000][size=2][color=#008000]//_this [/color][/size][/color][/size][size=2]}; [/size][size=2][color=#808080][size=2][color=#808080]_hvtposition[/color][/size][/color][/size][size=2][color=#000000] = mso_hvt_locations [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]call[/color][/size][/color][/size][size=2][color=#000000] BIS_fnc_selectRandom;[/color] [/size][size=2][color=#808080][size=2][color=#808080]_hvtclasses[/color][/size][/color][/size][size=2][color=#000000] = ["Ins_Commander","Ins_Lopotev","TK_Soldier_Officer_EP1","TK_INS_Warlord_EP1","TK_GUE_Warlord_EP1"];[/color] [/size][size=2][color=#808080][size=2][color=#808080]_hvtclass[/color][/size][/color][/size][size=2][color=#000000] = [/color][/size][size=2][color=#808080][size=2][color=#808080]_hvtclasses[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]call[/color][/size][/color][/size][size=2][color=#000000] BIS_fnc_selectRandom;[/color] [/size][size=2][color=#808080][size=2][color=#808080]_grp[/color][/size][/color][/size][size=2][color=#000000] = [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]createGroup[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]EAST[/color][/size][/color][/size][size=2][color=#000000]; [/color] [/size][size=2][color=#808080][size=2][color=#808080]_hvt[/color][/size][/color][/size][size=2][color=#000000] = [/color][/size][size=2][color=#808080][size=2][color=#808080]_hvtclass[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]createUnit[/color][/size][/color][/size][size=2][color=#000000] [[/color][/size][size=2][color=#808080][size=2][color=#808080]_hvtposition[/color][/size][/color][/size][size=2][color=#000000], [/color][/size][size=2][color=#808080][size=2][color=#808080]_grp[/color][/size][/color][/size][size=2][color=#000000]];[/color] [/size][size=2][color=#808080][size=2][color=#808080]_hvt[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]allowDamage[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]false[/color][/size][/color][/size][size=2][color=#000000];[/color] [/size][size=2][color=#ff0000][size=2][color=#ff0000]sleep[/color][/size][/color][/size][size=2][color=#000000] 1;[/color] [/size][size=2][color=#808080][size=2][color=#808080]_null[/color][/size][/color][/size][size=2][color=#000000] = [/color][/size][size=2][color=#808080][size=2][color=#808080]_hvt[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]spawn[/color][/size][/color][/size][size=2][color=#000000] fnc_pick_housepos;[/color] [/size][size=2][color=#ff0000][size=2][color=#ff0000]sleep[/color][/size][/color][/size][size=2][color=#000000] 1;[/color] [/size][size=2][color=#808080][size=2][color=#808080]_hvt[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#ff0000][size=2][color=#ff0000]allowDamage[/color][/size][/color][/size][size=2][color=#000000] [/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]true[/color][/size][/color][/size][size=2][color=#000000];[/color][/size] [size=2][color=#000000] [/color] [/size]
  11. The link you gave me links to ArmA actions? :P And so how could true/false returns work?
  12. the only thing I dont understand is A) Is this local or global? Global right? and B) why does it in end with _this?
  13. How can I create fnc_pick_housepos with that code so I can use fnc_pick_housepos later in the script to do that?
  14. Kolmain

    97thRR Opens Doors!

    We not have a custom Chernarus/Takistan/Lingor MSO, and 3 dedicated servers! Our players enjoy working as a team in a hardcore tactical enviroment and relaxing as a team through other games and activities. If you think the 97thRR is right for you, contact us today! We're reaching full capacity and need you in our ranks!
  15. I'm waiting on the dedicated problem as well :/
  16. the variable money is global, are you sure thats right? Sounds like you want a local variable, like _money after you label _money as the unit's variable, sorry I dont have the perfect syntax, you know what I mean?
  17. Kolmain

    Server.cfg?

    My unit has our own server with rather high specs and a 100mbs uplink, but we seem to get desync when players connect that gets increasingly worse. What are optimal settings in the arma2oa.cfg for a server? Maybe it's bandwidth allocation issues?
  18. Im trying to create a script that will spawn a high ranking officer inside a "villa" across the map of Lingor. First, how can I create an array of the locations of all positions of villas on the map? Next, I don't understand how to gather information from an AI and be able to format text to display their name. I will need to create a task explaining who they are. Finally, the defenses aren't too hard, just some find safe pos's?
  19. Is this script officially working on a dedicated server?
  20. Thanks, but I'm trying to limit it to villa-mansions only across the whole island :(
  21. Thanks, are they setup with groups? And are these units included with Lingor now?
  22. Lingor link doesnt work :(
  23. Wolffy, this single mission has definatley changed the way I look at ARMA2, you need a custom forum title for this! NICE JOB!
×