Jump to content

recognite

Member
  • Content Count

    8
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About recognite

  • Rank
    Private
  1. jep, works perfectly! Thank you very much. It's a pitty, I don't understand, why it has to be such complicated :( Underneath the _trg setTriggerStatements at the end of your code I put the follwing, in order to give the mission an end. My easy way of thinking produced: private ["_trg2"]; _trg2=createTrigger["EmptyDetector", [12345,12345,0]]; _trg2 setTriggerArea [15, 10, 0, true]; _trg2 setTriggerActivation ["ANY", "", false]; _trg2 setTriggerType "END1"; _trg2 setTriggerStatements["geisel in thislist;", "", ""]; But as expected, it doesn't work. Is there a little mistake oder does the code have cancer as hell? :wacko: I hope, you appriciate, that I at least try to code myself, although you do all the work in the end :D
  2. Thank you for your explanations! But the code doesnt' work. Geisel isn't responding, if anybody nears him. :-( Well, I didn't mentioned, that this code is executed by the init.sqf of the mp-mission!!! Is that relevant?
  3. great, it's working so far. Also the hint appears. Thank you very much. Ich don't understand, why there have to be written "this" instead of the var-name, but I'm glad, THAT it works. The further code still doesn't work. But it seems, you expected that allready XD
  4. if(isDedicated) then { GrpGeisel = Creategroup CIVILIAN; _marker1 = createMarker ["Marker1", [12345,12345,0]]; geisel = "C_man_p_beggar_F_euro" createUnit [ getMarkerPos "Marker1", GrpGeisel, "geisel switchMove 'AmovPercMstpSsurWnonDnon'; geisel disableAI 'MOVE'; geisel allowfleeing 0; geisel setBehaviour 'Careless'; geisel setCaptive true; commandStop geisel;", random 1, "Private"]; publicVariable "geisel"; hint "script works"; }; _trg=createTrigger["EmptyDetector", [0,0,0]]; _trg setTriggerStatements["player distance geisel < 1.5 && playerside == west && !(geisel in units group player)", "[geisel] join grpNull; [geisel] join player; geisel switchMove ''; geisel enableAI 'MOVE'; geisel setBehaviour 'aware'; geisel setCaptive false; geisel enableAI 'ANIM'; geisel setformation 'file';", ""]; My goal is the following Rescue-Szenario. 1. Hostage (german: geisel) stands on coords x,y --> works! 2. Hostage is in Surrendering-Position --> doesn't work! 3. Hostage doesn't do anything!!!! --> doesn't work, he is fleeing as hell.... 4. Hostage join any west-unit, which nears him upto 1.5 meter, if he isn't allready in the units group --> doesn't work 5. Hostages behavoir is like any other unit in the group - just normal --> doesn't work By the way 1: The hint "script works" doesn't appear, too. By the way 2: The script will be executed by an dedicated server. It is important, that this will be kept, otherwise as many hostages as player join the game will be created. Therefore: if(isDedicated) then... Has anybody a clue for me, why the hostage is created and positioned, but does, what he wants? I am frustrated....
  5. recognite

    JIA with disabledAI=1

    thank you guys. actually this is a dedicated server. @silentspike: before I try out the suggestions of awkwarded, I'll give your idea a try. Exactly what you wrote, is , what I wanted to reach. You die - disconnect - select another playable unit - get back to game and start at base, where every unit started and starts. That would be great. Which settings do I have to assign in the description.ext?
  6. Hey there, in the Editor I put several playable units. They are listed in the start-menu of my mission as expectet. If I die, I want to select another playable unit. That is only possible, if disabledAI=0. BUT: I also want, that all the playable units are only in the game, if they were selected by an human player. Is that possible? I tried: disabledAI=0; respawn=4;
  7. recognite

    Arma2NET

    Thank you. It works now!
  8. recognite

    Arma2NET

    Hey there, first of all: thank you for this huge thread, that helped me a lot, to run my copy of Arma2net. However there is a little problem I can't imagine. My Insert-Into-Query works wonderful - but every second time only. _query = "INSERT INTO `units` (idnr) VALUES ('works fine')"; _return = "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommandAsync ['armadb', '%1']", _query]; If I display the _return-Varable by hint '_return' it returns nothing, when it worked and [[]], when it didn't work. Always alternately without any changes in the script. I just restart the mission from the editor. Has anybody an idea? Thank you in advance!
×