PDA

View Full Version : Last buildingpos sends unit into ocean



Rejn
Jun 13 2007, 08:23
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

fasad
Jun 13 2007, 08:28
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.

Rejn
Jun 13 2007, 10:00
ahhh thanks http://forums.bistudio.com/oldsmileys/smile_o.gif I should have tested the other positions.

Sorry was my first time using the command.