Jump to content

Handle1

Member
  • Content Count

    11
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Handle1

  • Rank
    Private First Class
  1. I'd like to know just what types of things are possible with the Arma engine; now I've seen some amazing things on the Arma 3 Make Arma contest but how they accomplished them is wayy beyond me. I just don't see many possibilities beyond simply changing models, textures, and some functionality. I think I'm wrong when I say that; but like I said; looking at the tutorials it doesn't seem like there's many possibilities beyond basic stuff. Lastly I'd like to know just how efficient is the Arma 3 scripting language? I'm worried that if I tried to do something awesome; it would be grossly inefficient, and make it impossible for a large percentage of the users. I'm new to this whole Arma modding thing so bear with me! I'd also like to know if its possible to modify the health of a standard player. Like give them more health, or less (though players are very vulnerable already), or boost it for a short time.
  2. Actually I did this, but thanks to JShocks' guidance I had a good idea of how to accomplish it! _me = player; //Cache player moveHere = getPos _me; ///Get position moveX = moveHere select 0; //Place the positions in to separate variables moveY = moveHere select 1; moveZ = moveHere select 2; _customPosition = [moveX - 95, moveY - 50, moveZ ]; //Create a custom spot for the AI to be spawned hint format ["Players position is: %1, %2, %3",moveX ,moveY ,moveZ]; sleep 1.5; _grp = createGroup west; //Create a group to put them in _newAI = []; //Array for the AI for "_x" from 0 to 2 do { _newAI = _newAI + ["B_Soldier_F" createUnit [ _customPosition, _grp ] ]; //Create the AI and give them to the _newAI array hint format ["New AI created."]; sleep 1.0; }; _waypoint = [ (moveX + 95), (moveY + 55), moveZ]; //Do some arbitrary math with them and give the entire thing to _waypoint hint format ["Waypoints position is at: %1, %2, %3", _waypoint select 0, _waypoint select 1, _waypoint select 2]; _grp move (_waypoint ); //Move all the AI to the pseudo-waypoint I just created sleep 2.0; hint "AI are moving to the waypoint."; I do however think bestPlaces could be useful in the case of not knowing what may already exist where I want to spawn my AI. I should try that!
  3. Like that, yes. Can I just create an array with the three positions and give it to a method such as doMove() ???
  4. I'd like to try something out, basically I want to create a position on the map using a script, and not within the Arma 3 Editor. I'd like to use this position as a place for AI to go to, or otherwise be used. I'd just like to be able to create positions using a script; so using the editor isn't necessary. Doing this would let me make my missions/mods dynamic.
  5. Hello again. I attempted to use a unit named Officer_WP as a place to go to. However my ai spawn, go into formation, and stay put without ever traveling to the officer_WP. My source: _makeUnits = { _grp = createGroup west; for [ {_i = 0}, {_i <= 5}, {_i = _i + 1} ] do { _newAi = "B_soldier_M_F" createUnit[position player, _grp]; if (isNil "_newAi") then { hint format ["_newAi was not created!!!"] } else { [_newAi] join player; hint format ["_newAi was created."]; }; } }; _moveUnits = { _unitArray = units player; if (isNil "_unitArray") then { hint format ["Units were not retrieved for movement!"]; } else { { (_x ) doMove (position Officer_WP); }forEach _unitArray; } }; _positionAlpha = createVehicle ["B_MBT_01_cannon_F", position player , [], 0 , "CAN_COLLIDE" ]; //Just trying something out. This is rather useless at this point! if ( isNil "_positionAlpha" ) then {hint format ["Position was NOT created!"] } else { hint format ["Position was created!"]; }; call _makeUnits; hint format ["Five units created."]; call _moveUnits; hint format ["Units should be moving now."]; I think the reason this isn't working is the line in bold. Specifically the command "units" which returns an array containing the units in the group. There was something on the wiki that said this function doesn't work in MP if called by initline functions or init eventhandlers. In this case I have it being called from a script called "init.sqf" which loads a file called "loader.sqf" which then loads all of my scripts. Could that be why my AI do not proceed to the Officer_WP AI object? I have placed a unit in the mission with that specific name too. Maybe THAT'S the problem; the object isn't global in the mission file so I cannot access it. One more question: how would I spawn an object somewhere without placing it in the editor first? I'm just interested in spawning things at an arbitrary location so that I can use it as a waypoint for personal learning and debugging.
  6. I'm not sure; I tried it late last night and I don't think it worked. Its all a blur now. :/ Nevermind though; I've begun work on a different script to help me learn. I need help with the new one, should I post it here or in a new other thread?
  7. I've been struggling with this for most of the day and I just can't lick it. for "_i" from 0 to _count do { _pick = _aiGuys select _i; (_pick) doMove (position _spawnSpcAmmo); }; I get the error on the (_pick) doMove (position _spawnSpcAmmo); line, specifically at the use of _pick. _pick has been declared at the beginning of the file and _count basically contains the number of units in the _aiGuys array.
  8. [EDIT] Eh maybe I was too harsh. I edited everything out.
  9. Hello there. I and my team want to participate in the Arma 3 contest. My team and I have never modded an ArmA game before but we do have some programming background, and are all eager to participate! Could someone provide some links to resources that explain things like scripting/modeling/mapping, etc.? I have done research online and found a blog and the modding wiki but I really don't know where to begin with that. Everything is separate and hunting down features to use is going to be difficult if that is the only way. Any resources/links would be of enormous help to us. Thanks!
  10. HELP!! I need help posting to the main boards! This may sound stupid or extremely basic but I swear I'm not pulling your leg. I cannot post to the main boards, because I can't find the button to do so! I've been looking off and on for the last few days. The only thing I've been able to do is reply to threads, and this is my first. I don't mean to hijack the thread (you can even PM me if you want to) but I've contacted using the contact link at the bottom of the main page but nobody has replied. I can post screenshots if you like. I need to post to the main boards because I want to participate in the contest but I don't know where to begin. [edit] Nevermind. Its been solved. I think I had to make a reply to a thread first... really sucks that it doesn't tell you that anywhere though.
×