Cougar_DK
Member-
Content Count
16 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout Cougar_DK
-
Rank
Private First Class
-
How to play CZ/GER version completely in English
Cougar_DK replied to sickboy's topic in ARMA - GENERAL
Ctrl+C Ctrl+V to this. It has been a pleasure -
Ok thanx. And we will have two keys. My friend is bringing his pc
-
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
-
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.
-
Noob question: Result af setPosASL stored in array
Cougar_DK replied to Cougar_DK's topic in ARMA - MISSION EDITING & SCRIPTING
Thanx TD! I will try this out. I like your way of telling what I have done wrong. Makes it easier to learn! -
Noob question: Result af setPosASL stored in array
Cougar_DK posted a topic in ARMA - MISSION EDITING & SCRIPTING
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 ? -
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.
-
Thanx Victor. I will take a look.
-
Can I put data in this file?
-
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?
-
Rahmadi missions can't export to mpmissions
Cougar_DK replied to DOA's topic in ARMA - MISSION EDITING & SCRIPTING
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. -
setDamage and Eventhandler
Cougar_DK replied to Cougar_DK's topic in ARMA - MISSION EDITING & SCRIPTING
Thanx shiner. To bad it dosn't work. It just seems as the right way to do it. -
setDamage and Eventhandler
Cougar_DK replied to Cougar_DK's topic in ARMA - MISSION EDITING & SCRIPTING
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 ? -
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)
-
Thanx raedor. Changed my script and everything works as planned