Jump to content
Sign in to follow this  
tenskytarou

Beginner's corner?

Recommended Posts

Hello.

I am newbie here, just got TOH for Xmas, in two days played main story and what now? Of course try to make my first missions. I found video and manual in wiki so I tried. But I have lot of beginner's questions:

I can put container in net on the big ship but it is so alone there. I wont to put there the second one and I write "this setPos [position this select 1 + 2, position this select 2 + 2, 2]" to little bit far from this one ... but it is not there. How can I put more containers to boat?

The main problem I have is that I cant have map closer - the scroll wheel on my mouse is on max zoom, how can a man operate with small things foundable in menus (for example screwdriver)?

BTW: when I use light heli, connect the rope and then realize, that the load is too heavy, how can I release the rope in my first mission? Double R doesn't work.

Thank you for your help.

For CZ: Ahoj, nejsou tu nÄ›jací ÄeÅ¡i, když BI je Äeská firma? Já než nÄ›co sesmolím anglicky... uvítal bych zkrátka pár drobných rad do zaÄátku v mateřštinÄ›. :-)

Martin

Share this post


Link to post
Share on other sites

i think you are using multiple references to “this†when referring to two different objects, “this†is always the object you have typed the command into, at all other times you must call some other object by its name that you gave it when you placed it into the “world†with the editor.

Name the first container in net box1

Name the second container in net box2

In the second container in net (box2) you would use e.g.

"this setPos [position box1 select 1 + 2, position box1 select 2 + 2, 2];"

Or

"box2 setPos [position box1 select 1 + 2, position box1 select 2 + 2, 2];"

Or (using 3d xyz)

box2 setPosASL [(getPosASL box1 select 0) +2, (getPosASL box1 select 1) +2, (getPosASL box1 select 2) +0];

That should place box2 2m east and 2m north of box1, you can use setPosATL & getPosATL in place of setPosASL & getPosASL on land e.g.

box2 setPosATL [(getPosATL box1 select 0) +2, (getPosATL box1 select 1) +2, (getPosATL box1 select 2) +21];

Would put box2 +2m east/north and +21m above the ground.

Share this post


Link to post
Share on other sites

yes, thank you very much ... all is clear already ...

and it is possible add boxes dynamicaly, not in map? For example

for i:= 1 to 10

{

some createthebox ...

box setPosASL [getPosASL firstbox select 0) + (i*2), (getPosASL firstbox select 1) + (i*2), (getPosASL box1 select 2) +0];

}

? :-)

Share this post


Link to post
Share on other sites

The command you're looking for is createVehicle. I don't have the class name for the crates handy, but it will allow you to spawn dynamic crates.

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  

×