Jump to content
Sign in to follow this  
McArcher

Several questions

Recommended Posts

1. What does

Out of map
in .rpt mean?

2. How can I make a list (dialog's element) with more than one column? (there's a parameter for number of columns, but no info how to add info to several columns!)

Thank you for answering.

---------- Post added at 20:36 ---------- Previous post was at 19:06 ----------

3. What damage should infantry unit have to be unable to stand up and walk ? 0.5? 0.4?

found canStand

---------- Post added at 20:45 ---------- Previous post was at 20:36 ----------

4. How to place vehicles not horizontally (with setPos), but aligning to terrain?

Edited by McArcher

Share this post


Link to post
Share on other sites

5. my AI unit is sitting inside a vehicle (he is a driver), engine is turned on, i order him to move to a position , but he doesn't move. used move, doMove and moveTo and none works... why can it be?

Edited by McArcher

Share this post


Link to post
Share on other sites

6. Can I get the normal vector of the terrain at a particular point?

---------- Post added at 23:53 ---------- Previous post was at 23:43 ----------

anybody sees me?

Share this post


Link to post
Share on other sites

Feeling alone, no ?

I don't know the answer about your questions 1, 2 and 6. I don't understand your question 4. (anyway, check all the setpos commands in the wiki, they are numerous), and about question 5, you should be a little more precise : how do you order AI to move ? Is the destination very far from the actual pos ? Is the units fleeing etc.

Share this post


Link to post
Share on other sites

what do I mean by

4. How to place vehicles not horizontally (with setPos), but aligning to terrain?

When I place the vehicle and move it with setPos, it moves it that way, that not all wheels are standing on the ground (some wheels are in air, it moves object horizontally, not touching the land). And I want to move vehicle so that ALL wheels touch the ground, aligning the ground, like in real life. How can this be made?

Share this post


Link to post
Share on other sites

setPos'ing a vehicle with a 2d-position (or z=0) at any given place should put any vehicle on the terrain with landcontact for it's wheels (there is a special lod for this to make this happen). If you pass a z-value other than zero, the object will be hard placed instead, so you might wanna make sure that you submit a 2d-position (set or resize).

To find out the "normal" to a terrain, you can try to put a "probe"-object there that has the needed placement-config (slope, I'd guess) so it align's to the terrain once spawned (due to landcontact lod and placement config). Then you should be able to retrieve the normal with vectorDir/vectorUp.

Share this post


Link to post
Share on other sites

ruebe,

thank you very much! :)

---------- Post added at 19:01 ---------- Previous post was at 18:55 ----------

well, I have tried to use [x, y, 0] as a position, but it doesn't help, as well as [x, y]... why?

Share this post


Link to post
Share on other sites

seems like setDir was making object horizontal :(

but I need to set an angle... how can I save aligning to ground and changing direction in XoY ?

Share this post


Link to post
Share on other sites
have you tried calling setDir prior to setPos?

no... this might help?

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  

×