-
Content Count
2658 -
Joined
-
Last visited
-
Medals
Everything posted by demonized
-
Make units enter a EMPTY helicopter
demonized replied to Thyvo's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
try placing this in the getin wp on act field: player action ["moveToGunner", vehicle player] ; -
the shooter was observed in Oslo around the time of the bomb, and counting that its the holidays and not too many was on work of important party leaders i believe you are spot on, a "great" distraction to assemble all available personell in another area, so he could cause max damage in another.
-
http://www.vg.no/nyheter/innenriks/oslobomben/artikkel.php?artid=10080633 norwegian newspaper, use google translate perhaps. there is reports from Utøya that there is possible a second culprit, on the loose, not captured by the police. particpants describe a second man in civilian clothing and have given similar descriptions, also several describe shots beeing fired in 2 seperate locations at the same time. Nothng yet confirmed by any authority. It could just as well be panic and situational awareness thats been compromised in a horriffic situation that have led to this, but the witness reports is disturbing if true and he is on the loose. Edit, just now, a man was aprehended by police at the gathering of the parents, friends near Utøya, he had a knife, no more information descibed. maybe just extreme caution being executed by police, wich is understandable. No he was a radical "nationalist" in his own words.
-
Make units enter a EMPTY helicopter
demonized replied to Thyvo's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
use getin waypoint or did you want to not use waypoints? then use assignAsCargo assignAsDriver etc. -
isClass in array?
demonized replied to Double Doppler's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
something like this you mean? _a2 = false; _oa = false: _co = false; if (isClass(configFile >> "CfgPatches" >> "Chernarus")) then { _a2 = true; diag_log text "A2 installed"; }; if (isClass(configFile >> "CfgPatches" >> "Takistan")) then { _oa = true; diag_log text "OA installed"; }; if (_a2 AND _oa) then { _co = true; diag_log text "CO installed"; }; -
Not following the whole discussion, but in relation to what just happened in my country: This masacre is a sympthom of the all too long degradation of my country by its politicians. We are having massive amounts of violent rapes and violent crimes done by foreigners, mostly from the islamic population, massive in our known terms, we are a small country. Foreigners are given both jobs and benefits, that even native norwegians do not get. Many of our own population live under or near the poverty line, while foreigners are given house, car, and economical benefits larger than any norwegian. Our women are cautioned and afraid to go alone. Our men are subjected to gang violences. Our capitol is seeing alot of ghettos establishing themselves. Our schools is overflowing with immigrants, making the average norwegian an outcast or minority in his own country in many schools. Most of these issues are more noticable in our capitol Oslo, but all over the country its noticed. Any critical discussion towards the immigration is marked "racist" right away. Meanwhile, our hospitals do not have funds to provide adequat birthcare, healthcare for our norwegain population. Our police forces are being cut down, and their area of operation is limited to bigger citys while tasked with providing "policing" for nearby smaller citys on a call if trouble occurs basis. I myself lean more right than left in politics, and this idiot just made our job more difficult by doing this. This is the morning of the masacre and loss of 91 of my fellow countrymen and women so any working discussion with the left side would be non existant and fully understandable, but we must not forget that this person however deranged, acted because of the current rule of state. Prioritizing foreigners over native norwegians is the early onset sympthom, this radical idiot is the confirmed disease. I welcome foreigners that come to Norway to work and live as norwegians. I do not welcome those not wishing to adapt to norwegian culture and way of life. I do not welcome a free open border for those wishing to suckle the tit of my country at the cost of my own people. I do not welcome any EU participation from my country. Anyway, this idiot just made the left side stronger, and most likely ensured that they get re elected yet again based on symphaty. The politicians are already starting to reap the political harvest of this tragedy. Today a nation is in mourning. My thoughts go to all those that have lost their lives and those close to them.
-
Random helicopter spawn not working
demonized replied to cobra4v320's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
guys, it seems you are overcomplicating this with alot of unneccesary stuff, making it look advanced and all that but no need to make it difficult. this works just the same way and is much easier to read and understand aswell as more userfriendly. _grpvehs = []; // array to list all different vehicles in group. _grpDir = getDir (vehicle (leader _grp1)); // the direction of the leader or his vehicle. { _vehicle = vehicle _x; // the vehicle of the unit. if (_vehicle isKindOf "Air" AND !(_vehicle in _grpvehs)) then { // if vehicle is of Air type and not in list. _grpvehs = _grpvehs + [_vehicle]; // add the vehicle to the list so we know it has been processed. _vehicle setDir _grpDir; // set the group direction on the vehicle. _vehicle setPos [getPos _vehicle select 0, getPos _vehicle select 1, 150]; // set the height to 150. _vehicle setVelocity [sin(_grpDir)*150,cos(_grpDir)*150,0]; // set speed to 150. }; } foreach units _grp1; -
i think that the laser thing is just a group thing same as setBeheaviour.
-
mission problem after removing ace wound
demonized replied to smacker909's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
delete the mission.sqm and save again. -
How do I automatically move squad?
demonized replied to Crusher80's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
read the guide in my sig for alot of good new editor how tos, its old but still applies. -
Random helicopter spawn not working
demonized replied to cobra4v320's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
{ _vehicle = vehicle _x; if (_vehicle isKindOf "Air") then {_vehicle flyInHeight 200}; } foreach units _grp1; ---------- Post added at 10:13 PM ---------- Previous post was at 10:11 PM ---------- ah , spawngroup spawns vehicles on ground no matter. use spawn vehicle for air, and just make them all join your group. -
yeah positive rating, well ( above -2000) is considered normal(whatever side relations in your mission). less than -2000 is enemy (to all - important)
-
its basically the same reason why my AI tank stops for the wittle wabbit crossing the road, they love all life that is not directly shooting at them ;) you will not get your effect without using enemy sides, you can for example just addrating alot of -90000 then the unit will be enemy to all so you can time the actual "enemy" part, also turn it back off again with giving positive addrating. Edit: or just screw the AI, and use animations instead and coreograph your own apprehention part. use animation viewer from armaholic to view and find all kinds of animations.
-
Random helicopter spawn not working
demonized replied to cobra4v320's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
_rPos = [(_spwnpos select 0),(_spwnpos select 1),(_spwnpos select 2)+200]; _vehicle ..............(create the vehicle)....; _vehicle flyInHeight 200; -
Delete spawned group if distance to player is bigger then x
demonized replied to wiggum2's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
_pos = getpos a1; _units = ["NS_zombie1", "NS_zombie2"]; _spos = [_pos,random 360,[10,20]] call SHK_pos; _grp1 = [_spos, Resistance, _units, [], [], []] call BIS_fnc_spawnGroup; while {(count (units _grp1)) != 0} do { { _zombie = _x; if (({(_zombie distance _x) > 100 AND isPlayer _x} count playableUnits) == 0) then { deleteVehicle _zombie; }; } foreach (units _grp1); sleep 1; }; deletegroup _grp1; -
the current reports is that the center of our capitol with our government´s offices are hit by a big bomb. and the Leading party in Norways´s youth organisation was attacked by a single man dressed in police uniform armed with submachine gun. they were on an island abit of from our capitol. media reports that the attacker is caught by police. several dead youths, several dead in capitol as well.. EDIT: 5 dead confirmed youths on the island, 2 confirmed dead in capitol by bomb, multiple wounded varying degree in hospital ongoing operations. EDIT2: lol, media is using twitter and facebook to broadcast "confirmed" casualties and info, now its reported by police, 7 in capitol by bomb, amount on island is not yet given by police. media says they will not use numbers found on those sites unless confirmed by police anymore.... so facebook and twitter determines accepted "correct" facts... good i dont have to much hair, i would have pulled it out. crasy world, facts come from facebook.
-
Creating Tasks through script in MP
demonized replied to bigshotking's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
just letting you know that MP framework has this covered aswell, even for JIP i belive. -
Forcing sideChat msgs to be seen by all
demonized replied to A-SUICIDAL's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
since youre hint was already working you could just keep that if isserver part. the purpose of MP framework is to broadcast anything from anywhere to anyone you like. -
Forcing sideChat msgs to be seen by all
demonized replied to A-SUICIDAL's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Edit: initdone is to be run before the hints so you get it all timed properly, so at the top. for the playsound it look ok, not to much experience myself using that, but maybe you can raise the volume somehow. the thing is that maybe, this is only my theory supported only by imagination and too much or too little sun..... exit will cause an unregistrered error in the script, since its at the end, you may not notice it since its already done its job, but the script itself is hanged up in this error, never exiting. multiply this a bunch of times through a long mission, and you get alot of "hanged" scripts. and adding to overall script lag... again, just a wild theory, but proper usage is key for anything, ive seen alot of guys lately combine both sqs and sqf in several strange ways, only pros knows how to use this sucessfully, and then its just because they are old and lazy, or just very stubborn. sqf beats sqs every time, but sometimes you just dont need the speed of sqf and settle for sqs, like camera scripts, wich many just use sqs for even now. -
Creating Tasks through script in MP
demonized replied to bigshotking's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
createUnit array, setVehicleInit, processInitCommands make sure that you use ""double"" or 'single' inside the outer "quotes" in setVehicleInit. _gamelogic = createUnit........................blah....; _gamelogic setVehicleInit "_null = this execVM [b]'somescript.sqf'[/b]"; processInitCommands; -
Don't show enemy on map?
demonized replied to A-SUICIDAL's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
i can see why you used disabledAI, because it says so on wiki.... http://community.bistudio.com/wiki/description.ext#disabledAI so is it wrong, and should be disableAI ? or was it just very late when you "figured" this out ;) :D -
Forcing sideChat msgs to be seen by all
demonized replied to A-SUICIDAL's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
STOP mixing SQS and SQF syntaxes, stick to one in each script. exit is old in SQS, its automatic in SQF. for sidechat message, use MP framework, you need a functions module on map and make sure its initialized. [[b]s1[/b],nil,rSIDECHAT,"Rally Point deployed and marked on map."] call RE; when you use if (isServer) you only play the message on server, meaning not clients connected. i asume you tested on a hosted server, where you also were playing? wich would explain why only you saw the sidechat. with the above, you make sure all other clients see the sidechat. -
Delete spawned group if distance to player is bigger then x
demonized replied to wiggum2's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
another possible way: while {(count (units _grp1)) != 0} do { { _zombie = _x; if (({(_zombie distance _x) > 100 AND isPlayer _x} count [b]playableUnits[/b]) == 0) then { deleteVehicle _zombie; }; } foreach (units _grp1); sleep 1; }; deletegroup _grp1; checking distance to allplayers in MP, or switch out playableUnits with switchableUnits for SP. if Zombie is more than 100 away from all players, its deleted. edit, and yeah delete the group when empty for cleanlyness like twirly did. -
displayRemoveAllEventHandlers displayRemoveEventHandler displayAddEventHandler
demonized replied to rangerrambo's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
why are you using all those ""double"" qoutes? unless the code is inside "qoutes" just use "regular". also in some cases ' works better than "" -
Scripts are broken after using new units
demonized replied to acoustic's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
if the scripts do not use any special referring to the addon unit, simply save the mission manually in editor without the addon and you should be good to go. else the error lies in the scripts used in reference to the addon.