Jump to content
Sign in to follow this  
Oli89

replace command with setPosASL

Recommended Posts

I'm using this command in my sqs file for creating a bunker:

 

Name          Object-Type             X            Y           Z      degree angle

[Wall0001 , "Z_Cover_15M" , 9903.0 , 4259.0 , -15 , 180 ] exec "Bunker\Bau.sqs"

 

I have a problem with placing the correct height when i want to make the roof (the ground plate is correct).

 

Now I got the hint to use "setPosASL" because it uses the absolute height

 

XX setPosASL [9475.12,4057.52,29.8336]"

 

How do I replace because I work with the first command and create new objects

 

Unbenannt.png

Share this post


Link to post
Share on other sites
30 minutes ago, Oli89 said:

I'm using this command in my sqs file for creating a bunker:

 

Name          Object-Type             X            Y           Z      degree angle

[Wall0001 , "Z_Cover_15M" , 9903.0 , 4259.0 , -15 , 180 ] exec "Bunker\Bau.sqs"

 

That's not a "command"*, you're just executing another script. The "Bau.sqs" file in (I assume) "bunker.pbo" is where the magic happens, and where you could try to fit setPosASL. Can you extract that file and copy it's content here?

 

*I mean, it is "exec" command, but that's really not "the" command you're interested in :D

Share this post


Link to post
Share on other sites

I already found it by myslef.

 

But thank you for your help.

 

In this file "Bau.sqs"" there was all the "setpos" commands but unfortunately after changing from setpos to setPosASL all objects were placed now wrong.

 

code.png

 

Here my Script wit setpos

 

armaresistance-2021-02-27-10-16-18-setpo

 

And here with setPosASL

 

armaresistance-2021-02-27-10-15-49-set-P

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  

×