mcvittees
Member-
Content Count
155 -
Joined
-
Last visited
-
Medals
Everything posted by mcvittees
-
Dynamically Creating and Naming a Vehicle
mcvittees replied to Fuzzy Bandit's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
One day I'll be able to use what I've read here. One day... :D -
Dynamically Creating and Naming a Vehicle
mcvittees replied to Fuzzy Bandit's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Here is some code Shk helped me with. It spawns groups and assigns them a name pulled from the array. I'm guessing you could substitute the SpawnGroup for a vehicle or whatever. Obviously you don't need the wp bit but I thought I'd leave it in its entirity. //nul = [<"GroupName">,<"Spawn">,<"Wp1">,<"Wp2">] execvm "spawn.sqf" _grp = _this select 0; _pos = _this select 1; _wp1 = _this select 2; _wp2 = _this select 3; call compile format ["%1 = [getmarkerpos _pos, EAST, %2] call BIS_fnc_spawnGroup",_grp,["RU_Soldier","RU_Soldier2",]]; _grp = call compile format ["%1",_grp]; Sleep 3; _waypoint0 = _grp addwaypoint [getmarkerpos _wp1,0]; _waypoint0 setWaypointType "move"; _waypoint0 setWaypointBehaviour "alert"; _waypoint0 setwaypointcombatmode "green"; _waypoint0 setWaypointSpeed "full"; _waypoint1 = _grp addwaypoint [getmarkerpos _wp2,0]; _waypoint1 setWaypointType "SAD"; _waypoint1 setWaypointBehaviour "combat"; _waypoint1 setWaypointformation "wedge"; _waypoint1 setwaypointcombatmode "red"; _waypoint1 setWaypointSpeed "normal"; -
Trigger Side / Present / Repeatedly / Ellipse
mcvittees replied to Sardaukar17's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Screen shot of the triggers? Do you have any other scripts / triggers running in your mission? Test to see if you can make it work without the LHD. -
selecting weapons? how?
mcvittees replied to topeira's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
One reason why the code above may not have worked is because in each line you needed to add 'units' and remove the semicolon ';' in the curly brackets. e.g. I know you got it sorted but it might help your knowledge. -
Way points and "time" orders...
mcvittees replied to meade95's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Off topic but related to waypoint fields: Are scripts (or commands) placed in a waypoint's On Act. field run local to the computer that is controlling that unit? I'm assuiming that would be the logical assumption. -
Detaching Helicopters
mcvittees replied to Militant1006's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Man, I've has so much bother just getting them to land on the ground where I want to - sometimes they do, sometimes they dont *sigh*. World of hurt coming your way... (Sorry nothing constructive to say but I've been fiddling around with some helos for over a week so they're my pet peeve at the mo! :p) -
proper AH64 support
mcvittees replied to Rhodesy77's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Rhodsey, did you find a way to keep the AI up high? I wouldn't mind knowing how to do it it you did. -
Caching scripts
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I must admit I thought I was being pretty frugal with unit numbers, but obviously not frugal enough! I'll see if I can cut some AI fat. Hell, it may not be saving any CPU cycles to spawn these guys at all. -
I have a spawn script that creates some troops using call BIS_fnc_spawnGroup. However, when the mission is busy it can take over a couple minutes for all the troops to spawn which messes up another trigger which moves them into some vehicles. Is there a way to cache certain scripts at the beginning of a mission so when they run, they do so instantly?
-
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ta Shk, that worked a treat! -
Creating and deleting a spawned group
mcvittees posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I've been trowling through these forums for over a week and I can't find an answer to this: How do I spawn a group and give it a name that I can use to delete it later via {deletevehicle _x} foreach units GroupName? Createunit won't do because it requires an existing group (and I don't want there to be one) and with the bis_spawn_fnc it requires an existing group or a side. Please help! -
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Shk, sorry to bother you again but could you tell me what I need to reformat to get my group to move to waypoints in the script? -
civilian spawn
mcvittees replied to esco7800's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Why do you suggest putting this in the init.sqf? Wouldn't you want to call it from inside the mission so you could use it only when needed? (I'm right in thinking that the above puts them in the mission from the start, right?) ---- Ooops, just noticed esco7800 asked it be in the mission from the start. *Face Palm* Duh! -
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Shk, thank you so much that did it all! I can't say I fully understand the syntax you've used in these examples as they seem pretty advanced (or maybe my brain is old and slow) but hopefully one day!:) -
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This is perfect Shk except I can't specify a unit list array i.e. and also, I can't spawn Civilians - haven't tried resistance side. :( Anyways around the specify units list and side limitation? (I know I'm demanding, I feel ashamed):o -
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Wow that looks so simple! I'll be trying that asap! ---------- Post added at 10:59 AM ---------- Previous post was at 09:08 AM ---------- Shk, that works but is there a way do it so I don't need a separate script for each group I want to create? What I mean is, how can I pass from the execution array a name which will then become the global variable in the script? E.g. (I know this doesn't work, but I'm trying to indicate what I'm trying to achieve). I think what I am asking is how to make a local variable global? Does my question make sense? Edit: I tired making a series of cases to get around the need to specify the global variable from the in the execution array but it didn't seem to work: -
Creating and deleting a spawned group
mcvittees replied to mcvittees's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I didn't mean to imply I don't want to define a side (I do) only that it seemed I could only do that or assign my new group to an existing one. I'll research global variables. ta shk, I'll see how far i get with them. -
HELP: Spawn Vehicles /Planes
mcvittees replied to CaptainBravo's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
:)This is my bodge mod of Norrin's script. Bet there is a more sophisticated (i.e. simple) way of doing this but baby steps : This will create a group of vehicles that will have drivers and gunners who will drive to the waypoints listed. You need to play with the values in brackets after SIN and COS to set where in relation to the first vehcile the others spawn, but they'll all be spaced 10m apart. Also SetDir will set the direction the spawned vehicles face. Adding in more vehicles and crew is just a matter of copy and pasting lines and incrementing the numbers above. -
HELP: Spawn Vehicles /Planes
mcvittees replied to CaptainBravo's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
With regards to Norrin's script: How do I modify it so multiple vehicles belonging to the same group are spawned and all follow the waypoints added at the bottom? Could I make _group a variable passed to the script and then run it three times? i.e. -
How realistic is this game to actual soldiers?
mcvittees replied to D00mbuggy's topic in ARMA 2 & OA - GENERAL
The realism depends of ARMA depends on what you're trying to do. If you want to know about military tactics and procedures then with the right group you can pretty realistically practise these and gain an understanding of their principles (this only applies to MP games). However, I doubt it would prepare you for being shot at for real! -
Awesome!
-
I've been searching to no avail - can anyone help me: where (or how) do i find out the class names for the differenet units supplied with 1.6?
-
*Falls off his chair* Awesome.
-
Afghan Village - Aiaktalik
mcvittees replied to Delta 51's topic in ARMA 2 & OA - ADDONS & MODS: DISCUSSION
Yeah but the wiki says it can only be used on men and Vehicles - not static objects.:( -
How to add radio message after a certain event?
mcvittees replied to Pundaria's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Making a sidechat message come up when something happens is easy: Make a tigger with whatever activation condition you need, then in On Activation use: Adding sounds is little more complicated, but if you do a search... :p