-
Content Count
438 -
Joined
-
Last visited
-
Medals
Posts posted by thetrooper
-
-
Hi all, got a couple of questions around && and || .Basically who do I get this code to work?
(ff1 distance civ1 < 5 || ff2 distance civ1 < 5 || ff3 distance civ1 < 5 || ff4 distance civ1 < 5) && !alive murder1 && !alive en12;
I'm trying to say if these units are less then 5m away from a unit but also two other units have to be dead?
Trying to add it into a condition field. Also how would I write it if in a SQF file? -
If I set unit tp 0% presence how do I script the presence to 100% though?
-
Hi all. I'm wondering if there is a better way to spawn units.
If I place units where I want them in 3D editor, is there a way that you can make them only when a trigger is activated? I'm used to scripting units to appear on markers etc. -
Hi all, I'm having difficulty trying to keep my original task assigned. Script below for my task.
_null = [west, "tskobj_1", ["briefing", "name of task", "task named in briefing"], "marker", true] spawn BIS_fnc_taskCreate;
If I create another task after that then that will become the current assigned. How can I keep the first one being the current one?
-
Hi all. I'm trying to set a enemy unit to look in the direction of the closest bluefor unit.
If a different unit appraches closer to him he will then look in that direction. Any ideas? -
Hi all, I've got a really annoying issue with a steam window keep popping up in game. Seems to happen randomly when I hold down shift to run. Not the right time anyone needs that to happen. Does anyone know how to switch it off?
-
bump... still lost with this one
-
No good on the first code I'm afraid austin_medic. The second would be more ideal at the moment though I'm still going to need the first for loading out kit for the units eventually :S
-
if(!isNull en1) then {en1 setCaptive true;}; if(!is> Error position: <en1) then {en1 setCaptive true;}; if(!is> Error Undefined variable in expression: en1
Still has an error unfortunately. My code below:
if(!isNull en1) then {en1 setCaptive true;};
-
Would I have to write that for every unit or is there simplar way maybe in some sort of array?
-
Hi all, I've got an issue with if a unit doesn't exist and I have a script running Arma3 throws up an error. How can I avoid this?
Example.
I got enemy units with variables from en1 - en34 (34 being total number)
en15 has a has a probability set of 75% he also has en15 setUnitPos "MIDDLE" set in the init.sqf. en15 doesn't exist and get an error. I'm sure I never had that before. Is there any way to avoid it? -
Love the editor. Has been missed for a lot of years. I'm struggling with some of the simple bits. How do I ungroup a unit? (in 2D was F2 drag mouse then ungrouped)
-
Hi all, just had a brain wave. Is there a way to set a units waypoint to another unit?
I'm looking at two options.1. permanant - unit contantly following another.
2. waypoint refreshes - waypoint adjusts after a given time in seconds at current location of a unit
First one i imagine is easy with experienced scripters. The second would be interesting for something like a fugative hunt.
Any ideas? -
Yep, all handy tips, thanks everyone. Also helps facing the right way, this is solved
-
Hi all, Trying to get an image onto a User Texter. There are three sizes 10m, 1m and 1x2m. I can't get any of them to work at the moment. I'm guessing there are strict sizs the images need to be in order for the following to work?
board setObjectTexture [0, "sign1.jpg"];
-
"CIRCLE" may work better I haven't tested that yet. There must be some sort of function like setWaypointCombatMode "BLUE" that sets the height for the UAV to fly at
-
mmm, just tried this. didn't work. When i go to UAV terminal all the other settings are set (highlighted in orange) except altitude
-
ok everyone. this is what I have got however, how do i set the altitude???
greywp1 = greyGrp1 addWaypoint [markerPos "greywp1", 10]; [greyGrp1, 1] setWPPos markerPos "greywp1"; [greyGrp1, 1] setWaypointType "LOITER"; [greyGrp1, 1] setWaypointCombatMode "BLUE"; [greyGrp1, 1] setWaypointLoiterRadius 500;
-
Haveing difficulty with this one. Basically what's in the title. Set a waypoint where there's a marker, set the type, in my case it's loiter with range of 500m, behavoir is never fire and altitude 'High Altitude 500m'.
Thanks in advance
-
Hi all, any ideas how to spawn an empty vehicle?
Here's an example for a single unit below, but not sure about say an offroad truck?
siu5Grp = createGroup independent; siu5 = siu5Grp createUnit ["i_g_soldier_unarmed_f",markerPos "siu5",[],0,"CAN_COLLIDE"]; siu5 setUnitRank "SERGEANT";
-
Hi all, I'm using the current script below:
sleep 3; ["LOSER",false,true] call BIS_fnc_EndMission;
this obviously goes to description.ext. Works well.
Question is I'm potentially going to have more than 1 ways to LOSE. One is killing any independants the other failing a task?
What's the work around descriptions if there's only one LOSE? -
I just realised that not even the fuel bit is working in my Sqf file. Any ideas?
-
doesn't seem tyo be working. Even if i try it will full ammo still says message.
if (fuel grey1 < 0.8 | needReload grey1 < 0.2) then { hint "Stop and turn your engine off for maintenance"}
-
Hi all,
Is there an easy way to detect if a greyhawk is below a set of ammo to do something?
ie.
if (fuel grey1 < 0.8 | ammo grey1 < 0.9) then { hint "Stop and turn your engine off for maintenance"}
Fuel works fine. Not ammo though
&& and || statements in same code
in ARMA 3 - MISSION EDITING & SCRIPTING
Posted
hmmm, unit is still joining group when murder1 and en12 are still alive.
They though only be joining if both of these are dead. Any ideas?