#arma3_scripting

1 messages ยท Page 426 of 1

little eagle
#

๐Ÿ‘

peak plover
#

1.5 because then 6x RCO translates to 4x

little eagle
#

0.125 is a nice fov to work with.

#

What's the most common magnification of optics?

#

Like 3x?

peak plover
#

in a3?

little eagle
#

In A3 it's 2x.

#

4x is what you can easily hold steady while standing.

#

Irl

peak plover
#

Yeah... well irl not having to align ironsights is a huge benefit

little eagle
#

Am I the only one here that doesn't drink coffee?

peak plover
#

Yes, you are the only one here with white teeth ๐Ÿ‘ ๐Ÿ‘„ ๐Ÿ‘

lone glade
#

me too

little eagle
#

I get high blood pressure from it, then I have to run to the toilet twice as much, and then I get tired anyway. Oh and it tastes bad.

lone glade
#

I don't drink coffee or anything that isn't smoothies or plain water

peak plover
#

Ahh, yes high BP sucks

#

If you drink enough water that helps as well, for tiredness etc.

lone glade
#

just don't drink too much too fast

#

because you'll die

peak plover
#

~2 liters in 30 minutes == funny feeling

little eagle
#

Just read a random forum on the internet if you want to raise your blood pressure.

peak plover
#

Pretty sure if' its clear water you need to drink like 10 liters in 30 minutes to die

little eagle
#

SOMEONE'S WRONG ON THE INTERNET AGAIN

#

Read for 10 minutes and it carries you through the day.

still forum
#

glass of coffee? :U CUP!

lone glade
#

don't be bad cup dedmen

#

or noesis will appear again

peak plover
#

Don't say CUP. Audiocustoms will DMCA your workshop

lone glade
#

CUP, CUP......... CUP

#

insta banned

little eagle
#

Why do people even drink coffee out of cups and not glasses? These are the things I'll never understand.

unborn ether
#

Drink karkadaeh hot to raise pressure, cold to lower

peak plover
#

Always drink water out of a shaker

still forum
#

because the glass would get high on the coffein

little eagle
#

Could it discolor the glass, but not the ceramics?

still forum
#

No the chi energy could get out through the transparent material

#

Tho ceramics are also kinda transparent

lone glade
#

that's a weird way to call heat

unborn ether
#

Are you high people?

little eagle
#

Dunno about drinking glasses specifically, but you can make glass intransparent to heat radiation.

peak plover
#

Drink it in < 5 minutes... No problems with losing heat... Glass means it cools faster, therefor I can drink faster

still forum
#

Well we are not low.

unborn ether
#

๐Ÿ˜„

little eagle
#

We're actually talking about macros here, but you wouldn't know.

unborn ether
#

๐Ÿ˜

little eagle
#

;~)

peak plover
little eagle
#

๐Ÿ‘

unborn ether
#

I'm not even reading most of others

peak plover
#

This is the channels where individuals of higher intellect come do discuss important and extremely complex things.

unborn ether
#

I agree

little eagle
unborn ether
#

What's your ICQ

little eagle
#

commy2

barren magnet
#

@little eagle that or no real life

still forum
#

Who wants life anyway

still forum
#

Apparently "magic" variables exist...
param1, param2, updateOnly, disabledChatChannels, disabledVoNChannels

#

A lifer just taught me something. Well it's kinda useless information that I'll never need.. But...

#

Did you know this, thisList, thisTrigger are local variables without leading underscore?

little eagle
#

No, but go on.

austere granite
#

Why do people even drink coffee out of cups and not glasses? These are the things I'll never understand.

#

Commy confirmed pleb

still forum
#

I wonder what that means. If I define a local variable with the same name as a global one. And then try to access the global one.
Does it return the local one first?

little eagle
#

Sure, but why, Adanteh?

#

How to prove that this is a local variable?

austere granite
#

Because it'll cool slower das why

#

And you don't burn your hands

still forum
#

I don't know how to prove.

little eagle
#
this = 1;
0 spawn {
    isNil {
        systemChat str this;
    };
};

Like this?

still forum
#

It uses the engine function to set local variables. That's the only proof I have

#

spawn would execute next frame

little eagle
#

So?

still forum
#

might be gone till then

little eagle
#
call {
    this = 1;
};
systemChat str [this];
still forum
#

you cannot write or.. shouldn't be able to write to them because they are readOnly

little eagle
#

Well, it's an experiment.

#

If this prints 1, does it disprove what you said?

still forum
#

if you put that into a trigger

#

then I think yes

little eagle
#

Why trigger?

still forum
#

if this is not defined

#

you will create a global variable and it will just use that

little eagle
#

I think I get what you mean.

#

Why a trigger though?

#

Why not the spawn?

still forum
#

because triggers define the variables

#

I guess unit init too

#

and because spawn doesn't carry over local variables

little eagle
#
call {
    this = 1;
};
systemChat str [this];

Prints [1].

still forum
#

in what? unit init or trigger?

#

I only checked thisTrigger which is next to this but only in triggers

little eagle
#

LOCAL EXEC

still forum
#

this in unit init is a global variable

#

local exec?

#

You don't understand at all what I'm saying then

#

in trigger scripts. this, thisList, thisTrigger are local variables

#

You obviously can't check that in debug console or unit init as these are completly different things

little eagle
#

Oh, so this only applies to triggers. rgr

#

I put this into my avatars init box:

diag_log str [0,this];
call { 
    this = "test";
    diag_log str [1,this]; 
}; 
diag_log str [2,this];
#

Gave me:

15:57:18 "[0,B Alpha 1-1:1 (commy2)]"
15:57:18 "[1,B Alpha 1-1:1 (commy2)]"
15:57:18 "[2,B Alpha 1-1:1 (commy2)]"
#

So it seems like you can't overwrite it at all. No error.

still forum
#

triggers, user action, Uh... vehicle init... but not unit init?

subtle ore
#

I think dedmen is reffering to the variables passed to the trigger on execution rjght?

#

{} forEach thisList
etc etc?

still forum
#

yes

#

I think the createVehicle init script that was removed due to exploit problems also has this as local variable

little eagle
#
param1 = 2;
param1

Results in 2. I don't see any evidence that it's a reserved variable.

still forum
#

they are not reserved

#

They are just global variables, set by the engine at mission init

little eagle
#

I think I misread the whole thing then. So how is any of this new?

still forum
#

Dunno. New to me. I didn't know that local variables without leading _ were possible

#

Oh... Idea..

little eagle
#

It's probably made so they delete themselves.

still forum
#

It doesn't throw an error if you set them. Because the = operator handles it like a global variable

#

but the SQF instruction that get's the variable can see it being a local one

#

so when you set it, you set the global one. When you read it, you read the local one

#

wait.. Didn't we talk about that when I found the forceLocal flag?

little eagle
#

So they are local variables inside the init box too.

#

Because that would explain it.

still forum
#

no not the unit init box. Atleast not as far as I can see. Not 100% sure

little eagle
#

I knew all those variables, except updateOnly. What's that supposed to be?

still forum
#

I have no idea

#

It's inbetween the others

little eagle
#

Doesn't sound very magical to me.

still forum
#

I said the same. But Lifer guy told me basically all variables that are declared by the script engine or the game itself are "magic"

meager heart
#

updateOnly what is that ? ๐Ÿค”

#

undocumented secret thing*

little eagle
#

Well, this is magic.

still forum
#

The others aren't documented much better. param1, param2 and paramsArray are mentioned on the description.ext wiki page.
You won't find them using the wiki search and they are not mentioned anywhere else on the wiki afaik

little eagle
#

At least we know what they are.

shadow sapphire
#

Is there any way to place a tree in the Eden editor with say a script inside of a game logic or something?

still forum
#

yes

#

createSimpleObject

shadow sapphire
#

Oh? Hmm... now to find the config names for trees.

#

How might I make this work?

CopytoClipboard nearestTerrainObjects [player, [], 50]
meager heart
#

@shadow sapphire

0 spawn {
    _bush = createSimpleObject ["a3\plants_f\Bush\b_NeriumO2d_F.p3d", ATLToASL (player modelToWorld [0,0,0])];
};
shadow sapphire
#

@meager heart, thanks a ton! Are all of the tree models in that path?

meager heart
#

not sure tbh

#

i think yes

shadow sapphire
#

Ah. I'm trying to figure out getModelInfo.

meager heart
#

check wiki

shadow sapphire
#

I'm on it, haha.

#

getModelInfo b_ficusc2d_f.p3d; throws up "error, missing ;"

little eagle
#

It needs an OBJECT.

#

b_ficusc2d_f.p3d is just a STRING that misses quote marks.

#

Therefore errors.

shadow sapphire
#

Got it. Thanks!

#

Error, generic error in expression, now.

#

I think I'm close now. I need a prefix of sorts.

little eagle
#

๐Ÿค”

shadow sapphire
#

Hmm... now I'm stumped.

#

_modelInfo = getModelInfo "b_ficusc2d_f.p3d"; Generic error in expression.

little eagle
#

Yes, because getModelInfo needs an OBJECT, and "b_ficusc2d_f.p3d" is a STRING.

shadow sapphire
#

Oh, sorry. I thought your phrasing indicated that adding quotes made it an object, haha.

#

Hm.

little eagle
#

No, but it makes it a proper STRING, so at least resembles SQF. It's still wrong though.

shadow sapphire
#

I see. Any ideas how I get the information I need about this p3d?

little eagle
#

What information?

shadow sapphire
#

I need the model path.

little eagle
#

You can't get the model path from a model name obviously, as there can be multiple models with the same name in different paths.

shadow sapphire
#

Interesting.

#

Also, that's not obvious...

little eagle
#

Tbh, it is.

shadow sapphire
#

No. By definition, it's not. It's not obvious. The hell?

little eagle
#

This is coming from someone that didn't use computers until 12 yo.

shadow sapphire
#

Doesn't matter. Obvious means a specific thing, and that's not it. I don't want to argue with you, because I respect and admire you and all of the help you give to me and everyone else, but that's definitively not obvious.

little eagle
#

Did you ever use the windows file browser and had different... uhm pictures... with the same name in different folders?

#

It's the same concept.

shadow sapphire
#

No. I don't duplicate things on the same machine.

austere granite
#

I wonder if there are multiple files called README.txt on your computer ๐Ÿ˜‰

#

or uninstall.exe

shadow sapphire
#

I'm sure, but I didn't do it.

little eagle
#

Hmm.

#

Well, now you should understand why it doesn't work like that.

shadow sapphire
#

I do.

#

I already understood, the moment you pointed it out, but if you have to point it out, it's not obvious.

little eagle
#

It should be obvious to anyone that used a computer for a few years though.

#

It's like the first thing I tried when messing around with win98.

#

Tried to break it.

shadow sapphire
#

Why? If you are looking for the path of an object, it doesn't matter how many of those objects exist in whatever directories, THAT file or whatever has only one path. Different copies have different properties (paths, anyway).

austere granite
#

Moving on! ๐Ÿ˜„

little eagle
#

You're looking for the path of a filename, not of an object.

#

Guess you could search all files by name and then get all the files that match this name including their paths. But that is not something SQF can do.

shadow sapphire
#

Well, if it's based on something like cursortarget, that specific object should only have one directory with its filename, right? Or no?

little eagle
#

Yes, that is why it works with OBJECT, but not with filenames.

#

OBJECT's know their models path. Name and folders.

#

If you don't provide an OBJECT, you don't know the models path. If you only provide a filename, it could be in any folder.

#

Because a model path is filename plus folders.

shadow sapphire
#

Got it. The problem is that certain map objects don't seem to be detected by cursor targets.

Whatever the case, I got the information I needed a bit ago by dropping the p3d name into the search bar on the biki.

little eagle
#

Try cursorObject.

#

How did you even get the model's filename in the first place, but not the whole model path? ๐Ÿค”

shadow sapphire
#

I used nearestTerrainObjects [player, [], 10] while standing next to the tree I wanted to identify.

little eagle
#

Omg, then you already had the OBJECT.

shadow sapphire
#

It still wasn't returning the model path.

little eagle
#
nearestTerrainObjects [player, [], 10] apply {getModelInfo _x}
#

There, done.

shadow sapphire
#

That's what I needed, haha.

#

Hahahahahaha, fuck me.

little eagle
#

lol

shadow sapphire
#

I literally laughed out loud.

#

Loudly out loud.

little eagle
#

Hey, you maybe learned something today.

shadow sapphire
#

Eh, doubtful. For some reason, this kind of thing is my least gifted area. Nearly anything else, sports, video games, fitness, tests, school, work, I kill it. This? It makes me feel completely invalid.

#

Sometimes I get on a roll. I can read the stuff and understand it, but creating it from scratch is like pulling teeth.

#

What does false mean in this context? "t_ficusb2s_f.p3d","a3\plants_f\tree\t_ficusb2s_f.p3d",false

little eagle
#

No idea, let's check the wiki...

#

[modelName, modelPath, hasSkeleton]

shadow sapphire
#

Interesting! So hasSkeleton false basically means it can't be animated or something?

#

Or that it's a simpleobject of sorts?

little eagle
#

Dunno what exactly they mean with skeleton.

#

In SAGE2, a skeleton was needed for the object to support animations.

shadow sapphire
#

SAGE2?

little eagle
shadow sapphire
#

Interesting.

#

So I have this inside of an eden place gamelogic;

{_x hideObjectGlobal true} foreach (nearestTerrainObjects [this,[],5]);
0 = 0 spawn {
    _tree = createSimpleObject ["a3\plants_f\Tree\t_FicusB2s_F.p3d", ATLToASL (this modelToWorld [0,0,4])];
};```

I get "Init: Type script, expected nothing."
#

I don't understand.

little eagle
#

Change:

0 spawn {
to
0 = 0 spawn {

shadow sapphire
#

Like that?

subtle ore
#

So that you get a return yes?

shadow sapphire
#

What does this do?

half inlet
#

code in init fields must not return anything - if they do return something, you get the error that you posted above

shadow sapphire
#

I'm going to make a note of that.

half inlet
#

spawn returns a script handler

#

but if you asssign something to the spawn, you basically "catch" the returned value

subtle ore
#

Doesn't make any sense, why wouldn't they be able to return anything without error?

half inlet
#

that way the init field returns nothing as a whole, thus the error disappears and the world is just a little happier again

little eagle
#

It doesn't make any sense indeed, but it is how it is.

shadow sapphire
#
/* Code in init fields must not return anything. If they do return something, you get "Init: Type script, expected nothing."
Spawn returns a script handler, but if you assign something to the spawn, you "catch" the returned value. */```

Noted in my scratchwork file.
little eagle
#

You can wrap your whole code block in

call {
    ...
};

to work around it.

shadow sapphire
#

Oh, shit! I'm familiar with that method! Had forgotten all about it.

meager heart
shadow sapphire
#

Haha, no, I know what this does, but I didn't know what "that (adding 0 =)" did.

little eagle
#

It's stupid and does nothing*, except fixing your issue.

still forum
#

It basically does nothing. yes.

shadow sapphire
#

Now this;

{_x hideObjectGlobal true} foreach (nearestTerrainObjects [this,[],5]);
0 = 0 spawn {
    _tree = createSimpleObject ["a3\plants_f\Tree\t_FicusB2s_F.p3d", ATLToASL (this modelToWorld [0,0,4])];
};

Says this is undefined, except it was working fine, earlier.

still forum
#

It causes a terrible bug in the SQF engine that we all hate

#

but it fixes your issue by accident

#

because you spawn

shadow sapphire
#

Ah.

still forum
#

and this might be a local variable which ofcause doesn't carry over

shadow sapphire
#

Okay, of course. Somthing else.

still forum
#

Man.. Can already use the stuff I learned a couple hours ago

little eagle
#

It's a good explanation, even if it weren't true.

#

So it has my approval.

shadow sapphire
#

What bug does the 0 = 0 spawn cause?

little eagle
#

Just pass this as argument inside your spawn block and then use _this in there instead.

#

0 = 0 spawn
doesn't cause any bugs.

#

Your code wouldn't work anyway. Because this is undefined in your CODE block behind the spawn command.

#

This is why you have to pass is a argument to that block.

shadow sapphire
#

It worked to hide objects before I added in the next part.

half inlet
#

ok, so thisis available in the scope of the init field

little eagle
#

Not inside spawn it didn't.

shadow sapphire
#

Right.

still forum
#

this works in the init script

half inlet
#

if you use spawn, you have to use _this because then you're no longer in the scope of the init field, but rather of the spawn

still forum
#

as soon as you spawn you create a different/new script though

shadow sapphire
#

I got that part, it looked like you were saying none of it would work without defining the thing.

half inlet
#

hah, ninja'd you

shadow sapphire
#

But I am tracking now.

little eagle
#

Yeah, "script instance", not "scope".

#

It is a different scope because it is a different script instance, but local variables do carry over to child scopes.

#

So it doesn't work not because it is a different scope, but a different script instance.

half inlet
#

true, script instance is more descriptive of the situation

little eagle
#

๐Ÿ‘

still forum
#

Actually it's a VMContext. But who cares

half inlet
#

goddamnit

little eagle
#

xD

half inlet
#

get out of here with your nonsensical overly accurate knowledge on trivial matters

still forum
#

get's out of here

half inlet
#

yay, one furry less, thousands more to go ๐Ÿ˜‚

little eagle
#

But this IS the channel for nonsensical overly accurate bs.

shadow sapphire
#

I can't find how to pass arguments on the biki. I used to know this stuff, before my eighteen month hiatus...

still forum
#

There is a fox on your avatar. I have a fox on my avatar too

little eagle
#

If it weren't, it is now.

half inlet
#

difference being one is very much real, while the other one isn't

meager heart
#

to pass your this inside spawn use 0 = [this] spawn { here this becomes _this};

little eagle
#

Actuall foxes are fine, antropomorphised foxes are not.

half inlet
#

in your words, but who cares

shadow sapphire
#

Oh. I'm not sure I was ever familiary with that one.

little eagle
#

Get rid of the square brackets and it works, DEL-J

#

Otherwise you pass [<obj>], an ARRAY, as _this, and not <obj>, an OBJECT

meager heart
#

next topic probably params

little eagle
#

Eh, not needed if you only pass one argument.

#

It's not even a function stored in a variable, so that would overkill.

shadow sapphire
#

I actually remembert how to do parameters before a script... more or less.

subtle ore
#
params[["_cookieList",[],[[]],["_playerList",[],[[]]];
shadow sapphire
#

Wow. Okay, it's working. Geez Louise.

subtle ore
#

:+1:

meager heart
#

splendid

subtle ore
lone glade
#

splendid splendider splendidest

#

truly the most splendid timeline

subtle ore
#

Indeed

little eagle
#

bad better ___

subtle ore
#

Waa?

little eagle
#

I'm sure even you will get it.

subtle ore
#

Shoot

compact maple
#

Hey guys. I want to execute a query on my database when the server start. It will return an array like this, ["name1","name2","name3"]
i want this array to be accessible by players to make some check, if "word1" in array ["name1","name2","name3"] then blablabla
do you know whats the best solution ?

still forum
#

send the array to the players.

little eagle
#

Dunno about the database part, but store it in a global variable and then send that to everyone using publicVariable.

ruby breach
#

Alternatively, if the array is too large for you to want to broadcast to all players, store it as a server global variable, and write a function that uses a param to query the array and pass back only the returned element to the player

quaint ivy
#

Hey,i have a small scripting issue that i cant figure out. This is how the vvs is called trough an action and im trying to call it in a trigger.
this addAction["Request a Car",VVS_fnc_openVVS,["vvs_car","Car"]];
Im trying to call it like this:
["vvs_car","Car"] call VVS_fnc_openVVS;
But the arguments dont seem to get passed. What am i doing wrong?

ruby breach
#

addAction always passes params as _this select 3

still forum
#

Also passing a big function is not optimal as addAction converts it to a string and recompiles it everytime you use it

#

this addAction["Request a Car",{["vvs_car","Car"] call VVS_fnc_openVVS; }];
Just do that

ruby breach
#

The alternative would be to change your trigger to ```sqf
[nil,nil,nil,["vvs_car","Car"]] call VVS_fnc_openVVS;

#

Be sure to tweak your fn_openVVS function's params to accept the new addAction parameters (i.e, _this select 0, 1 vs _this select 3 select 0, 1)

subtle ore
#

Trigger? Why are triggers being used?

tender fossil
#

@still forum I suggest making the guide interactive. Put lots of assignments and tasks that gradually increase in complexity. Programming is learned by doing too, "no-one has yet to learn to program by reading books" like my CS professor said ๐Ÿ˜›

still forum
#

I'm not the one making the guide ^^

tender fossil
#

Ah

still forum
#

oneoh also wanted something like a regular programing challenge. That might also help people to learn. Will see I guess

tender fossil
#

I wonder if you could utilize @queen cargo 's upcoming SQF VM in the challenge

kindred lichen
#

I know this is probably an exceptionally simple thing, but I've looked and looked and can't seem to find out how to do a timed action. Like a scripted repair or something where there player does an animation for a few seconds then whatever happens. Like ACE treatment or Repairing vehicles in KOTH.

still forum
#

I don't know how SQF VM would help. Besides people being able to use it to test their scripts online

kindred lichen
#

I've been able to get people to animate, but it's usually pretty rough, and is only client side.

little eagle
#

I wouldn't call it a simple thing. You first need an interaction menu, then a progress bar, something that handles the animation, and a callback for when the progress bar finished or was aborted by e.g. you dying.

tender fossil
#

Yeah, that was my point, seeing their code in action instantly

little eagle
#

It's like the most complex things I ever did.

kindred lichen
#

shit.

#

Yeah, I always just have instant add actions for stuff, but it's kinda lame.

subtle ore
#

AddAction kind of stuff? ๐Ÿคท

little eagle
#

No progress bar.

kindred lichen
#
    
    _progcheck = 0;
    _assembling = 1;
    dSpawns setPos getpos Core;
    //mSpawns setPos getPos Core;
    while { _progcheck < 100 and _assembling == 1 } do 
    {
        _progressb = Core getVariable "AssemblyProgress";
         
         player switchMove  "Acts_carFixingWheel";
        sleep 10;
         _progress = Core getVariable "AssemblyProgress";
         _state = format ["%1",animationstate player];
        if( _state== "acts_carfixingwheel" and _progressb == _progress) then
        {
little eagle
#

The captain wants a progress bar, and play and maybe abort an animation.

subtle ore
#

Yes, i was reffering to :

Yeah, I always just have instant add actions for stuff, but it's kinda lame.

little eagle
#

Me too.

kindred lichen
#

I pulled this out of a script I did like 3 years ago.

#

Basically I set the animation, then after 10s checked if the player was still animating, if so, I added a "progress" tick to the job.

#

Then after a minute, or so they'd have enough progress and it would complete.

#

but The animations didn't synch for multiplayer.

#

so the player saw them doing stuff, but everyone else just saw them staring at the box.

little eagle
#

ACE progress bar.

#

Guess the complexity depends on what you want to handle

#

// this does not check: target fell unconscious, target died, target moved inside vehicle / left vehicle, target moved outside of players range, target moves at all.

#

Lot's of things that can go wrong on a delayed action.

austere granite
#

So you're saying that finishing the wheel repair when you go incapped is not intended behaviour?

little eagle
#

Is it like that? I thought the condition handles it.

austere granite
#

Not talking about your script.. just the type of stuff people usually forget ๐Ÿ˜„

little eagle
#

Thought _condition handles this, because it's appended by canInteractWith, which has the common condition isNotUnconscious, which repair should not have an exception for.

#

You see? I was paying attention when I made this for AGM. And it was a bitch.

#

The most convoluted thing I had to ever deal with in Arma. Maybe someone more talented can come up with something simpler for ACE4.

austere granite
#

I think mine is even messier

kindred lichen
#

Imagine if there was a mod that fixed vehicle collisions.

little eagle
#

Doesn't sound feasible.

lone glade
#

it's not

kindred lichen
#

offroad backs into a parked car at 10 kph catastrophic failure on both vehicles, and one gets launched into space.

#

#realism

lone glade
#

because the force to separate vehicle 1 from vehicle 2 is insane

little eagle
#

Blame NVidia and PhysX.

lone glade
#

blame BI

little eagle
#

I hope Arma 4 goes back to an inhouse physics engine.

lone glade
#

nope

#

bullet

peak plover
#

how well does bullet mp physics under heavy loads and low fps?

subtle ore
#

Better than physx?

peak plover
#

no clue

obtuse cosmos
#

Hi, I'm working with RscControlsGroup again and am stuck, brain isn't working atm... Ha. Basically, the full width of the ControlsGroup container is 0.68 and each control inside has a width of 0.08, I want them to show side each other without spacing (padding) but am stuck somehow...

lone glade
#

..... you're serious?

#

you use screen percentages?

#

really?

obtuse cosmos
#

?

peak plover
#

Shh alganthe

obtuse cosmos
#

It is relative

lone glade
#

yeah, i'll keep quiet

obtuse cosmos
#

So it starts at 0

peak plover
#

Not everynone can be pixel perfect

still forum
#

I hope we get GPU physx :X @peak plover do you know if bullet does that?

obtuse cosmos
#

I do plan to use pixelGrid soon ๐Ÿ˜›

still forum
#

But we can make everyone pixel perfect :hacksaw:

#

No saw emoji?

peak plover
#

OPENCL probably

obtuse cosmos
#

That comes to my second question, do you even need to use safeZone or pixelGrid inside RscControlsGroup?

lone glade
#

....

little eagle
#

safezone > pixelGrid

lone glade
#

you don't seem to get it

obtuse cosmos
#

?

#

Then do explain

lone glade
#

@little eagle don't say confusing things

#

you're supposed to use both

obtuse cosmos
#

lol

little eagle
#

Either, not both. But not none.

peak plover
#

What's the issue

#

Can u explain once again

obtuse cosmos
#

๐Ÿ˜„

#

Like

peak plover
#

explain

little eagle
#

Just absolute numbers will fail on any other screen size, resolution or even ui size.

obtuse cosmos
#

It overlaps

#

I want them to fit the whole width

peak plover
#

You don't want them to overlap?

obtuse cosmos
#

Yes

#

I don't know why they are

peak plover
#

change the X position for them

obtuse cosmos
#

I start at 0

#

Then 0.08

#

And so on

peak plover
#

yeah

obtuse cosmos
#

But this happens?

#

The width is 0.08

peak plover
#

Increase the X

lone glade
#

read what commy said.

obtuse cosmos
#

I do

#

0, 0.08, 0.16

#

etc

little eagle
#

Without a grid, this will never work.

peak plover
#

add more, then it won't overlap?

#

that's true

lone glade
#

this is bound to fail

peak plover
#

Yeah

obtuse cosmos
#

Obviously lol

little eagle
#

He's not using safezone or pixelGrid.

obtuse cosmos
#

I tried both

little eagle
#

That can't work.

obtuse cosmos
#

safeZone

#

And without

#

But I removed safeZone as I didn't think it was needed for RscControlsGroup controls since it is relative to that

lone glade
peak plover
#

#define GRID_X =(safezoneX + safezoneW)/40
c1{
x = 0;
w= grid_x*1;
};
c2{
x = 0+grid_x*1;
w=grid_x*1;
};

obtuse cosmos
#

no

#

I know that

lone glade
#

then you must know what you're doing is pointless

obtuse cosmos
#

It is fine but when I add inside RscControlsGroup it messes up

#

As I have to change the numbers and start from 0

peak plover
#

post controls

#

make sure you do 0 + (GRID_X*1)

#

for x

#

pastebin your controls config

obtuse cosmos
#

Okay

little eagle
#

hides

obtuse cosmos
queen cargo
#

You guys ever though about not using grid at All?
That whole crap literally is bs

obtuse cosmos
#

LOL

#

๐Ÿ˜„

#

Nobody wants to use your tool ๐Ÿ˜›

#

joke

subtle ore
#

you guys ever though about?
are you drunk X39?

obtuse cosmos
#

๐Ÿ˜„

little eagle
#
  • safezoneW
    is literally all you're missing.
obtuse cosmos
#

I tried that

#

That makes it worse

#

1 sec

#

wait

#

ahh

#
  • safezoneW on X?
queen cargo
#

@obtuse cosmos there is a ingame Editor that Exports to safezone and a tool in intelij sqf

little eagle
#

W

#

Not X

obtuse cosmos
#

I have that?

little eagle
#

No.

obtuse cosmos
#

w = 0.08 * safezoneW;

#

w = 0.08 * safezoneW;

lone glade
#

use maths...

little eagle
#

On the X

obtuse cosmos
#

you said not X

#

lol

little eagle
#

I said you need W on the x position.

#

Jesus.

obtuse cosmos
#

so add

#
  • safezoneW + safezoneX
lone glade
#

we need jesus?

obtuse cosmos
#

which I already tried

little eagle
#

No.

obtuse cosmos
#

1 sec

queen cargo
#

And even without... Math is all you need
The full width is safezonex + safezonew

little eagle
#

Holy fuck.

subtle ore
#

Several people are furious

lone glade
#

nah, just laughing here

little eagle
#

This has to be troll.

still forum
#

๐Ÿฟ ๐Ÿพ ๐Ÿ› ๐Ÿ›’

subtle ore
#

๐Ÿช

lone glade
#

it throws me back at commy yelling at me

little eagle
#

Did I ever do that?

subtle ore
#

It throws you back at?

lone glade
#

also baer

little eagle
#

When was that, before you in ACE?

obtuse cosmos
#

Okay, added that

#

See, no difference

lone glade
#

baer had.... harsh words

subtle ore
#

baer?

queen cargo
#

Congrats you got a missplaced ui

lone glade
#

baermitumlaut

little eagle
#

Can you post what you did now?

#

The config.

peak plover
#

did u misplace ctrlgroup?

#

lol

obtuse cosmos
#

I added * safezoneW + safezoneX

little eagle
#

Dude.

peak plover
#

all headers are not lapping, just main one is

obtuse cosmos
#

to add controls inside RscControlsGroup

peak plover
#

ctrlgroup might be offset X

still forum
#

bรคr mit รผ?

little eagle
#

I said you have to add safezoneW

#

And you add safezoneW + safezoneX

obtuse cosmos
#

OH

#

lmfao

little eagle
#

And then complain that it doesn't work.

#

...

subtle ore
peak plover
#

XD

obtuse cosmos
#

ty

little eagle
#

Also, clearly the spacing is now fixed.

obtuse cosmos
#

I wasn't complaining lol

#

You asked me

little eagle
#

All that's wrong is the offset

queen cargo
#

Your Problem starts way sooner... Your whole ui does not looks Centered if you would ask me

little eagle
#

What offset did you add?

#

safezoneX

#

Why?

obtuse cosmos
#

If you get so stressed trying to help

#

Don't help

little eagle
#

Who knows.

obtuse cosmos
#

Simple as that

still forum
#

does not look*

peak plover
#

the spam in this channel is ral

subtle ore
#

Very ral indeed

little eagle
#

ral 8000

queen cargo
#

Auto fix of mobile keyboard @still forum

obtuse cosmos
#

Anyway, that fixed my issue, thank you.

queen cargo
#

Gets even worse when writing german now a dass

still forum
#

I disabled auto corrections because of such things and because of the lag

little eagle
#

You're welcome.

#

The getting screamed at is part of the effective treatment.

obtuse cosmos
#

@queen cargo I made of messed up the grid size lol ๐Ÿ˜›

#

I'm just gonna use pixelGrid

queen cargo
#

Stop using grid for fuck Sake

obtuse cosmos
#

lol

little eagle
#

NEVER listen to X39.

obtuse cosmos
#

Yes, Boss.

#

LOL

#

may*

queen cargo
#

Use percentages

meager heart
#

๐Ÿฟ

queen cargo
#

You know how high 100% is

#

And how width

lone glade
#

someone pass me a torch

obtuse cosmos
#

@lone glade lol

little eagle
#

Of the width? I can agree to that, but that is using the grid implicitly.

lone glade
#

it's time to burn the heretics

meager heart
#

torch

queen cargo
#

Now use first class math to do the calc

peak plover
#

I love using grid. But % is actually a grid as well

little eagle
#

^

peak plover
#

it's jsut a finer grid

obtuse cosmos
#

Should I use pixelGrid or safeZone? All vote now ๐Ÿ˜›

peak plover
#

And you can use floats with a big grid

little eagle
#

safezone

queen cargo
#

You cannot fuck up percentages is the thing

little eagle
#

Hold my beer.

lone glade
#

time to bring my idea to life, a screen with a single giant pixel

#

no more grids

obtuse cosmos
#

LOL

little eagle
#

safezone > pixelGrid

still forum
#

you cannot fuck up percentages?
You can also not fuck up just counting from 1 to x

queen cargo
#

That already exists @lone glade
We call it a LED

peak plover
#

This is what my grids look like

#define GRID_W ((safezoneX + safezoneW)/4)
#define GRID_H ((safezoneY + safezoneH)/4)
#

perfect 4 boxes

#

All I'll ever need

#

just dived if need finer detail

lone glade
#

NOT PIXEL PERFECT REEEEE

queen cargo
#

@still forum +1, no perfect centering,....

peak plover
#

GRID_W/5

little eagle
#

safezone!

obtuse cosmos
#

@peak plover I have something like that

#

As well as ```sqf
// Pixel grid
#define pixelScale 0.50
#define GRID_W (pixelW * pixelGrid * pixelScale)
#define GRID_H (pixelH * pixelGrid * pixelScale)

peak plover
#

never used pixels, not sure what they are really

little eagle
#

The only reason to ever use them is when you want to draw a one pixel wide line or something like that.

obtuse cosmos
#

oh

#

I'll use nigel's GRID_W, etc

peak plover
#

yeah, but don't use /4

obtuse cosmos
#

Oh

peak plover
#

Commy on the money

obtuse cosmos
#

This is what is currently in the config at top, not in use atm: ```sqf
// Default grid
#define GUI_GRID_WAbs ((safezoneW / safezoneH) min 1.2)
#define GUI_GRID_HAbs (GUI_GRID_WAbs / 1.2)
#define GUI_GRID_W (GUI_GRID_WAbs / 40)
#define GUI_GRID_H (GUI_GRID_HAbs / 25)
#define GUI_GRID_X (safezoneX)
#define GUI_GRID_Y (safezoneY + safezoneH - GUI_GRID_HAbs)

#

Are these wrong or?

peak plover
#

i dno what the abs do

#

min 1.2

#

What

obtuse cosmos
#

lol

queen cargo
#

That is wrong on a completely different Level

obtuse cosmos
#

This was from BIS btw

peak plover
#

yeah

#

I just removed the ABS

obtuse cosmos
#

Using BIS function to export base classes

austere granite
#

2018

obtuse cosmos
#

lol

austere granite
#

not having 317 lines of UI defines

obtuse cosmos
#

@peak plover so yours look like above? and you removed Abs ones

little eagle
#

2000 lines of defines

#

one function call

peak plover
#
// safezoneX + safezoneW is max size of screen from left to right
// divide it into 40. 
// for full screen (w) : GUI_GRID_W*40
// for start from mid screen (x): safezoneX + (GUI_GRID_W*20)
#define GUI_GRID_W            ((safezoneX + safezoneW)/ 40)
#define GUI_GRID_H            ((safezoneY + safezoneH)/ 25)
#

like that ?

austere granite
#

@little eagle that's why i use my #ifdev _INC_UI #include "macros_ui.hpp" #endif

obtuse cosmos
#

@peak plover ty

#

what do you use for X / Y ?

peak plover
#

read comment

#

I think that's what I did

#

safezoneX is left most pos
safezoneY is top most pos

#

I based mine off BI template too

#

'tho

obtuse cosmos
#

do I need to add anything for the x and y though? ```sqf
class container : RscControlsGroup
{
idc = 1000;
x = 0.16 * GUI_GRID_W;
y = 0.171429 * GUI_GRID_H;
w = 0.68 * safezoneW;
h = 0.685714 * safezoneH;

#

or is this wrong?

peak plover
#

So it's probably the wrong way todo

#

So

#

0.68

#

wrong

obtuse cosmos
#

๐Ÿ˜ฆ

#

you mind sending example ?

austere granite
#

the whole idea of a grid is that you don't use 10 decimals for your values

obtuse cosmos
#

oh btw

#

I used GUI Editor lol

#

probably why

#

maybe I should ditch that

austere granite
#

GUI Editor is fucking shit

obtuse cosmos
#

๐Ÿ˜„

little eagle
#

O_o

austere granite
#

It's a great way to not understand UI configs and get really crazy values all over

obtuse cosmos
#

commy2 shhhh ๐Ÿ˜›

peak plover
#
//1st
            x = 0+(GUI_GRID_W*0);
            y = 0 +(GUI_GRID_H*0);
            w = 1 * GUI_GRID_W;
            h = 1 * GUI_GRID_H;

//2nd
            x = 0+(GUI_GRID_W*1);
            y = 0 +(GUI_GRID_H*0);
            w = 1 * GUI_GRID_W;
            h = 1 * GUI_GRID_H;
#

1st control starts top left of the ctrlGroup

#

2nd starts next to the first one

obtuse cosmos
#

that makes sense lol

#

so 3 would be: ```sqf
x = 0+(GUI_GRID_W*2);

peak plover
#

W AND H were compeltly

#

wrong

#

Update W and H

obtuse cosmos
#

I mean 2

#

so

#
//3rd
            x = 0+(GUI_GRID_W*2);
            y = 0 +(GUI_GRID_H*0);
            w = 2 * GUI_GRID_W;
            h = 2 * GUI_GRID_H;
peak plover
#

yeah

obtuse cosmos
#

WOW

peak plover
#

inside ctrlgroup correct

obtuse cosmos
#

that is so much simpler

#

lol

#

oh

#

what about out ?

peak plover
#

replace x and y 0 with safezoneX and safezoneY

#

It's just cuz I'm a simple man ๐Ÿ˜œ

obtuse cosmos
#

lol

peak plover
#

Farmer Scripts 2018

obtuse cosmos
#

as long as it works on all screens

#

LOL

#

Farmer Scripts lol

peak plover
#

Works on my machine

obtuse cosmos
#

so, when not inside RscControlsGroup

#

just use safeZone ?

#

for x and y ?

#

for 0

peak plover
#

0 is the most left you can go on X inside group
safezoneX is most left you can go on X on screen inside group

#

well

#

to still show stuff

little eagle
#

Yep.

obtuse cosmos
#
x = safeZone + (GUI_GRID_W * 0);
y = safeZone + (GUI_GRID_H * 0);
peak plover
#

safezone safezoneX

obtuse cosmos
#

ah

#

yup

peak plover
#

and Y

obtuse cosmos
#

and safeZoneY?

#

yup

#

ty

#

okay so

peak plover
#

No problemo

obtuse cosmos
#
x = safeZoneX + (GUI_GRID_W * 0);
y = safeZoneY + (GUI_GRID_H * 0);
w = 2 * GUI_GRID_W;
h = 2 * GUI_GRID_H;
#

what is 2 ?

#

like

#

2 what?

#

two grid?

little eagle
#

2 times your grid.

peak plover
#

that's (size of screen divided by 40)*2

#

aka 5%

#

of the width

#

or height

little eagle
#

nigel, what you write makes sense. You're making me proud. ๐Ÿ˜ข

obtuse cosmos
#

lol

#

just to confirm

peak plover
#

Thank you. I learned from the best ๐Ÿ˜‰

obtuse cosmos
#

100 is whole width

little eagle
#

safezoneW is the whole width.

obtuse cosmos
#

oh

#

I just tried 100

#

and it made it all the way ?

#

so don't use 100

#

just put safeZoneW?

#

w = 100 * GUI_GRID_W;

obtuse cosmos
#

but terms of placing say a title bar across the whole width?

#

that wrong?

little eagle
#

safezoneW

obtuse cosmos
#

oh

little eagle
#

Or like 40 of those 2.5% grids that nigel gave you.

#

Because

#

(size of screen divided by 40) times 40

obtuse cosmos
#

ahh okay

little eagle
#

is the width of the screen.

#

...

obtuse cosmos
#
w = safeZoneW;
#

it seems to do the same as 100 but I guess I'll use ^^

peak plover
#

nah

#

Try

#

w = safezoneX+safezoneW

obtuse cosmos
#

rgr

peak plover
#

for whole screen wide

#

x is not 0 and changed dpending on various screens

little eagle
#

Looks wrong to me. Why you'd need the positional offset for the width?

obtuse cosmos
#

and for Y

#

y = safeZoneY + safeZoneH;

#

?

peak plover
#

yeah

#

I didn't use that once and it all looked good on my screen

obtuse cosmos
#

that didn't work btw

queen cargo
#

@little eagle they grow up so Quick

little eagle
#

What he needs is maybe a grid based on the width of his control group instead of the whole screen.

obtuse cosmos
#

it puts it about 65?

#

just guessing roughly here

#

of the screen

#

the safeZoneW did work

peak plover
#

ooh

obtuse cosmos
#

as for w = 100 * GUI_GRID_W;

peak plover
#

Not

#

y

#

but W

#

y is start point

#

y should be safezoneY

#

to start from top of screen

little eagle
#

100 * GUI_GRID_W
is 2 and half screens.

obtuse cosmos
#

OH

#

lol

#

so what is just screen across

#

w = safeZoneX + safeZoneW;

little eagle
#

40

obtuse cosmos
#

that puts it at 65% of screen

#

40?

little eagle
#

or safezoneW

peak plover
#

W ALWAYS USE safezoneY

obtuse cosmos
#

oh

peak plover
#

height (y axis)

#

width (x axis)

subtle ore
#

when should i use count and when should i use forEach?

peak plover
#

if you need forEachIndex

#

use foreach

#

If you need to count the result

#

use count

compact maple
#

@still forum @little eagle thanks for the answer. but this is the point, how do i send it to the players ?

subtle ore
#

@peak plover Cool, thanks for the feedback

still forum
#

commy told you how

compact maple
#

publicVariable ?

#

got it ! thanks

little eagle
#

๐Ÿ’ฉ

obtuse cosmos
#

@peak plover what does your w look like for whole screen

peak plover
#

To fill the whole screen

x = safezoneX;
y = safezoneY;
w = (safezoneX + safezoneW);
h = (safezoneY + safezoneH);
obtuse cosmos
#

ah

#

I was only using 1 ๐Ÿ˜›

austere granite
#

w = (safezoneX + safezoneW);

#

wrong

obtuse cosmos
#

but say, just across

peak plover
#

Ebolrate?

austere granite
#

Your width is... safeZoneW

little eagle
#

Adanteh is right.

obtuse cosmos
#

x = safezoneX; w = (safezoneX + safezoneW);

austere granite
#

your width is not the origin + width

#

safeZoneX + safeZoneW is the right side of the screen... not the width of the screen

little eagle
#

x = safezoneX;
y = safezoneY;
w = safezoneW;
h = safezoneH;

peak plover
#

ohh fuck me

little eagle
#

or

peak plover
#

you are right

#

yeah

#

shit

#

my bad

austere granite
#

I dont want to fug you, you're a lil fattie ๐Ÿ˜ฆ

subtle ore
#

Are we still talking about this?

little eagle
#

x = safezoneXAbs;
y = safezoneY;
w = safezoneWAbs;
h = safezoneH;
for TRIPPLE SCREEN

subtle ore
#

it's been over a half an hour

peak plover
#

haha ๐Ÿ˜„

obtuse cosmos
#

lol Midnight

#

Knowledge.

#

is everything ๐Ÿ˜›

subtle ore
#

Heheh, true. :+1:

obtuse cosmos
#

even if it takes 30 minutes or more ๐Ÿ˜›

subtle ore
#

I am sure you have mental sticky notes on your brain now

obtuse cosmos
#

@commy2 how would you do a combo? would you just use the Triple screen or would that display wrong on single ?

peak plover
#

I never tried on tribple double screens

#

But mine always looks the same

#

With different resolutions / different settings

obtuse cosmos
#

triple double screens? ๐Ÿ˜›

peak plover
#

whatever they call them

obtuse cosmos
#

hehe

peak plover
#

I didn't do that at first

#

All looked fine

#

until someone else played it and was like

obtuse cosmos
#

yeah

peak plover
#

Wtf

obtuse cosmos
#

LOL

#

๐Ÿ˜„

#

surprise!

#

๐Ÿ˜›

peak plover
#

works on my machine

obtuse cosmos
#

sends screenshot

#

lol

peak plover
#

Well

obtuse cosmos
#

nigel: ohhhh fuck

peak plover
#

Now always take the same amount of space on the screen

obtuse cosmos
#

reinstalls the game

peak plover
#

fixed

obtuse cosmos
#

is that your game hours?

peak plover
#

yeh

obtuse cosmos
#

12,304
Hours played

#

lol

#

mine

#

kinda sad

#

LMFAO

peak plover
#

Daaaym

little eagle
#

safezoneXAbs is identical to safezoneX if you're using only once screen. Same for W.

subtle ore
#

Nigel is a lifer

#

so it doesn't count

obtuse cosmos
#

lol

peak plover
#

LIES!!!

obtuse cosmos
#

๐Ÿ˜„

peak plover
#

๐Ÿ˜ 

#

NOT LIFE

subtle ore
#

TRUTH! EXPOSED!

peak plover
#

๐Ÿ˜จ ๐Ÿ˜จ ๐Ÿ˜จ ๐Ÿ˜จ

little eagle
#

nigel is a lifer

peak plover
#

NOT LIFE

subtle ore
peak plover
#

๐Ÿ˜ฐ ๐Ÿ˜ฐ

compact galleon
#

#totallyontopic

obtuse cosmos
#

you know the animation bug with weapon, does anyone know if that can be prevented? have to script it a certain way?

peak plover
#

N..n..n..not l-l-life

subtle ore
#

LIFER!

peak plover
#

setdamage 1, fixes most animation bugs

obtuse cosmos
#

LMFAO

#

haha

#

I mean the ones in a loop

peak plover
#

Do you mean the one where you can't stop moving forward?

obtuse cosmos
#

think of KoTH ๐Ÿ˜›

#

like repair animation but your gun is in the air

#

lol

subtle ore
#

nig_life_fixBugThing

obtuse cosmos
#

LOL

peak plover
#

@subtle ore ๐Ÿ‡ท ๐Ÿ‡ฆ ๐Ÿ‡จ ๐Ÿ‡ฎ ๐Ÿ‡ธ ๐Ÿ‡น

obtuse cosmos
#

LOL

#

๐Ÿ˜†

subtle ore
#

@peak plover ๐Ÿ‡ฑ ๐Ÿ‡ฎ ๐Ÿ‡ซ ๐Ÿ‡ช ๐Ÿ‡ท

obtuse cosmos
#

haha

compact galleon
#

Midnight Racist ๐Ÿค”

peak plover
#

๐Ÿ˜ญ

obtuse cosmos
#

ha

subtle ore
obtuse cosmos
#

๐Ÿ‘ฝ

subtle ore
tender fossil
subtle ore
#

Definitely

peak plover
#

#arma3_scripting in 2018 sure looks ๐Ÿ‡ฌ ๐Ÿ‡ท ๐Ÿ‡ช ๐Ÿ‡ฆ ๐Ÿ‡น

#

#arma3_scripting more like #โƒฃ ๐Ÿ‡ฒ ๐Ÿ‡ช ๐Ÿ‡ฒ ๐Ÿ‡ช ๐Ÿ‡ณ ๐Ÿ‡ฌ

subtle ore
#

nig_fnc_life_memeGen

peak plover
#

๐Ÿ˜‚

subtle ore
#

mid_fnc_life_newNigFnc

meager heart
#

need new magic variable _thisChat...

little eagle
subtle ore
#

Absolutely

peak plover
#

tru dat

still forum
peak plover
#

How do you check

subtle ore
#

Shiet

little eagle
#

๐Ÿ‘Œ

still forum
#

discord search

#

in: scripting

#

on top it displays number of results

peak plover
#

jeez

#

Das alot

sour saffron
still forum
little eagle
#

That's more than 10%. O_o

sour saffron
subtle ore
#

4,778 here..

still forum
#

I think you should take a vacation @little eagle

peak plover
#

```sqf
7.8k

little eagle
#

I AM on vacation.

#

That's the problem.

subtle ore
#

Let the rock roll ๐Ÿค˜ ๐Ÿ˜‘ ๐Ÿค˜

peak plover
#

heads will roll

little eagle
#

I need a new video game.

subtle ore
#

Nonsense

#

Arma is the only game that exists, obviously

peak plover
#

@little eagle just fly a heli in arma

little eagle
#

How high do I have to get my % to rename the channel to #commy ?

subtle ore
#

Three hits

meager heart
#

#comming *

little eagle
#

Sounds like a porn channel.

peak plover
#

@commy2

meager heart
#

๐Ÿ”ž

little eagle
#

๐Ÿ’ฉ

subtle ore
peak plover
#

@little eagle

little eagle
#

That did tag me.

peak plover
#

do me

#

do me

little eagle
#

Well, if you tell me how you did that, sure.

subtle ore
#

@nigel_the_lifer

#

๐Ÿคท

peak plover
#

๐Ÿ˜ 

#

@peak plover

#

hmm

#

@peak plover

little eagle
#

@peak plover

compact galleon
#

Just escape it

peak plover
#

interesting

compact galleon
#

put \ in front

peak plover
#

@peak plover

little eagle
#

<@180757017432948736>

peak plover
#

still shows

subtle ore
#

@peak plover \

peak plover
#

@peak plover

#

\@peak plover

#

cool beans

subtle ore
#

?!?

compact galleon
#

Escaping ATeveryone will not color it, but still mention everyone, lol

peak plover
#

@subtle ore

subtle ore
#

@compact galleon Are you serious?

compact galleon
#

@subtle ore Yes

peak plover
#

@compact galleon that's interesting

little eagle
lone glade
#

thefuck is going on

compact galleon
#

I doubt you can use everyone here

little eagle
#

MACRO's alganthe.

subtle ore
#

no, only vets and minions can use it iirc

#

Nope

compact galleon
#

Well, hope they never need to escape it

little eagle
#

@everyone is disabled for normal users.

compact galleon
#

Did it on my server once to explain everyone, and even though it was escaped and not highlighted, it mentioned all 20k members

#

lol

subtle ore
little eagle
#

It's great to get many angry responses quickly on a server where it works.

compact galleon
#

Discord has a lot of these bugs

lone glade
#

tfw you're a normie

#

๐Ÿ˜ฆ

compact galleon
#

I also fucking hate ghost messages

#

Post everyone 100 times, then delete all 100 messages, and everyone will have 100 notifications but no messages

obtuse cosmos
#

lmfao

peak plover
#

lmao

#

With the number you can make a copy-pasta like that

#

just pasta and delete

#

They will never know

lone glade
#

FM will notice

peak plover
#

true

#

I feel the hammer above me for suggesting that tbh

#

What if he is already in my room

little eagle
#

Please.

subtle ore
#

confiscate the lifer code and have you locked up

peak plover
#

๐Ÿ˜ฐ

lone glade
#

and then fire and fury the likes of which the world has never seen will fall upon thee

manic sigil
#

He shall replace one in every hundred ] with }

little eagle
#

As long as there are no ), sure.

subtle ore
#

So when doing conditions which is faster () or {} ?

peak plover
#

() afaik

subtle ore
#

Ok

weary dirge
#

Is there a parameter which can I use to identify the unit which spotted the player?
I need it to getPos -> crazy but simple exmaple: Enemy spots player, script get the position of this unit and spawn a tank above units head.

still forum
#

What?

lone glade
#

you can't

still forum
#

How do you "spot" the player?

#

You can

lone glade
#

spotting isn't a "Can't see, oh now I can"

still forum
#

but.. That's a given parameter already if you detect if someone spotted the player

lone glade
#

it's a scale from 0 to 4 where 4 is absolute certainty

still forum
#

you have to check for each unit if it has spotted the player

subtle ore
#

Well you can get the position of where the ai thinks the enemy is at

still forum
#

and if you see that a unit has spotted him.. You already know the unit

meager heart
#

targetKnowledge maybe

#

but that not really what q was

weary dirge
#

targetKnowledge could work or search if any unit have knowsAbout higher than 0.
Thanks

peak plover
#

for remoteExec

#
Array - array of any of types listed above
#

Does this work?

#

[west,op_0_1]

still forum
#

Don't know why it wouldn't. But didn't try

peak plover
#

Would RE for west and where op_0_1 local

#

Okay

#

Sounds good

#

If it works in my functions, then BI can probaly make it work too...

austere granite
#

Yes that works

haughty jewel
#

can anybody tell me whats wrong with this. its in a trigger to move a marker close to an object. "cachemarker1" setMarkerPos [getPos car, random 350, random 360] call BIS_fnc_relPos;

#

it says, Error type array, expected number

young current
#

getpos car drops an array into the first parameter

#

which is expecting a single number I suppose

haughty jewel
#

i see what you mean

#

ive tryed a few diffrent way to do this with no luck so far

young current
#

ok so if you used only setMarkerPos getPos car it would work

haughty jewel
#

ooo

#

i think ive done it

young current
#

its expecting just pos

#

best to keep wiki close

haughty jewel
#

problem is i only got into the basics of arma 2 scripts, and it been a year or so.

young current
#

same principles apply