Jump to content
Sign in to follow this  
Rejn

Last buildingpos sends unit into ocean

Recommended Posts

Did a quick search for buildingpos but didnt find anything although I have read that this bug has been recognized.

I am using version 1.08.

I am making a mission in carazol and have noticed that with the command:

this setpos ((nearestbuilding this) buildingpos 8) the unit will be transported out into the ocean. This seems to be the same case for most buildings that the last number position will send the unit into the ocean.

so for example a building with positions 1-8 will find that position 8 is not working with a setpos command.

the others seem to work fine however.

Anyway juest a heads up perhaps Im doing something wrong.

Thanks

Share this post


Link to post
Share on other sites

A building with 8 positions uses buildingPos 0 through 7, not 1 through 8.

Using buildingPos X, where X does not exist returns [0,0,0] which is obviously ocean.

Share this post


Link to post
Share on other sites

ahhh thanks smile_o.gif I should have tested the other positions.

Sorry was my first time using the command.

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  

×