Jump to content
Sign in to follow this  
Tajin

GameLogic in ArmA3, different?

Recommended Posts

I just tried putting a "Logic" object into a vehicle as I often did in ArmA2. For some reason though, I couldn't do it.

Do Gamelogics behave differently in ArmA3 or am I missing something?

This for example didn't work:

L1 = createGroup west createUnit ["Logic", [0,0,0], [], 0, "NONE"];
L1 moveInCargo car1;

Share this post


Link to post
Share on other sites

No gamelogic-experts around lately? ;)

Share this post


Link to post
Share on other sites

does the logic exist? if not, is west center created beforehand?

Share this post


Link to post
Share on other sites

Yes I've checked that, the logic does exist. (tried the above directly from the console)

I can also setPos and getPos it as usual, it just seems to refuse to react to the "moveInCargo" command.

Share this post


Link to post
Share on other sites
Yes I've checked that, the logic does exist. (tried the above directly from the console)

I can also setPos and getPos it as usual, it just seems to refuse to react to the "moveInCargo" command.

I thought logics being placed in vehicles had been disabled in A2, I've never actually tried it.

Is it supposed to simulate a live empty vehicle?

Share this post


Link to post
Share on other sites

Ok. Did you also try moveInDriver etc?

Share this post


Link to post
Share on other sites

I'm guessing you want this to occupy seats on cargo of some vehicle.

Just an idea: assignascargo some far far away units?

Share this post


Link to post
Share on other sites

This works for me in the editor:

(create logic called L1 and vehicle called car1 in the editor).

L1 assignAsDriver car1; L1 moveInDriver car1;

Share this post


Link to post
Share on other sites
This works for me in the editor:

(create logic called L1 and vehicle called car1 in the editor).

L1 assignAsDriver car1; L1 moveInDriver car1;

Nothing happening in A2/OA

center = createCenter sideLogic;
grp = createGroup center;
L1 = grp createunit ["LOGIC",[0,0,0], [],0, "NONE"];
L1 assignAsDriver car1;
L1 moveInDriver car1;
//[L1] join group player;

The logic is created as it can join the player but it's not in the vehicle.

Share this post


Link to post
Share on other sites

Maybe i don't make sense at all, but would be "attachTo" a solution to it?

Share this post


Link to post
Share on other sites

Ok let me explain what I was trying to do:

I wanted to place gamelogics on cargoseats for two reasons:

1. to occupy the seat so noone else can sit there

2. to get the exact position of the seats and use those positions to transport objects (small ammoboxes)

Essentially this would allow me to create a very simple cargo-script that works with pretty much any vehicle, without having to be specifically configured.

@Das Attorney

I'll give it another go when I get home, maybe I just did something wrong. Thanks for checking.

Share this post


Link to post
Share on other sites

There is always the invisible man found in the UAV

Share this post


Link to post
Share on other sites

I think I may have been wrong - will check again tonight but the results seem inconsistent.

Share this post


Link to post
Share on other sites
There is always the invisible man found in the UAV

Oh I didn't think of that one, great idea. I guess that would work.

:D

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×