Jump to content

Cougar_DK

Member
  • Content Count

    16
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Cougar_DK

  • Rank
    Private First Class
  1. Cougar_DK

    How to play CZ/GER version completely in English

    Ctrl+C Ctrl+V to this. It has been a pleasure
  2. Cougar_DK

    LAN and internet server

    Ok thanx. And we will have two keys. My friend is bringing his pc
  3. Cougar_DK

    LAN and internet server

    Hi, is it possible to have two pc's in the same LAN joining the same internet server/game? I.e. should one of us change something about port or the like ? Cheers Mark
  4. Cougar_DK

    Debugging a script

    Ok thanx hoz. To bad we can't dump info to a text file. I will try the chatmessages. And like you, I'm not sure they can be used in SP.
  5. Thanx TD! I will try this out. I like your way of telling what I have done wrong. Makes it easier to learn!
  6. Hi I'm still learning this script language and this time I want to store every units location in a array. This piece of code seems to work: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">aiInfo set [i_co, getPosASL _unit] i_co = i_co + 1 Where i_co and aiInfo is two global variables. An integer and an array. getPosASL gives an array with three elements and I'm then trying to get the positions this way: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{_x exec "somescript.sqs"} forEach aiInfo I guess _x is now a position array, but this could be my problem... The "somescript.sqs" looks like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_obj = _this select 0 _xpos = _obj select 0 _ypos = _obj select 1 _zpos = _obj select 2 But it seems that _obj isn't an array. Is this the way to do it or am I way out ?
  7. Cougar_DK

    Debugging a script

    Sorry for looking as a total noob (I'm am in OFP/ArmA edting, but everyone has to start somewhere) and have no clue as of what ArmA.RPT is.... And yes I want to debug my script. I want to create my own log file with debug data in it (like i do everyday in my proffesional life as a software developer). I was just wondering if it was possible. I saw at the Wicki that the debugging commands was disabled but not echo, even though it seems that.
  8. Cougar_DK

    Debugging a script

    Thanx Victor. I will take a look.
  9. Cougar_DK

    Debugging a script

    Can I put data in this file?
  10. Is there some way to make a log.txt file or the like? Hint is good for simple scripts, but I have a script that runs for each AI (about 80) and would like to see something about them, so hint is not an option. So is it possible to make an external log file by scripting in ArmA?
  11. Hi DOA, it also fooled me. You have to open the Intel form in the editor by clicking "Intel". There you name the mission. This fooled me when I tried to use a mission created by another person in mp. Hope this helps.
  12. Cougar_DK

    setDamage and Eventhandler

    Thanx shiner. To bad it dosn't work. It just seems as the right way to do it.
  13. Cougar_DK

    setDamage and Eventhandler

    Hmmmm, I wanted to use the above for some kind of "Medic script". I.e. get a lot more wounds instead of outright kills, giving the medic class something to do in a mission. But the lack of responses tells me thats not the way to do it or ?
  14. I tried last night to use the eventHandler for "killed" and setDamage to revive the person that just was killed. But it didn't work out that way. The object killed stayed killed. So is there a way to revive at killed object using a eventHandler? I'm at work right now and don't have the script right here but I'm pretty sure it was something like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{ _nilPoint = _x addEventHandler[ "killed",{ (_this select 0) setDamage 0.5 ]; }forEach thislist; (Found the code snippet from here: http://www.flashpoint1985.com/cgi-bin....handler)
  15. Cougar_DK

    Clases and countType

    Thanx raedor. Changed my script and everything works as planned
×