Using getposatl to get the exact co-ordinates of a building is broken in the latest dev release. It always returns 0 for the y co-ordinate.
Description
Details
- Legacy ID
- 2133777288
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
hint format ["ASL:%1 ATL:%2",getposasl nearestbuilding player,getposatl nearestbuilding player];
I would rate this one fairly critical, it causes any scripts that rely on building co-ordinates to fail.
Event Timeline
Is it the getPosATL part which makes my objects disappear with the following script?
Rubbish = "Land_Garbage_square3_F" createVehicle position this; deleteVehicle this; Rubbish setdir 220; this setPosATL [getPosATL this select 0, getPosATL this select 1, 1.025];
Certainly having issues! Upvoted.
yeah
player setPosATL getPosATL player will send one in the ocean
player setPosATL (player modeltoworld [0,2,0]) works and will send player 2 meteres in front
This is only on Dev branch at the moment, right? I tried running one of my missions yesterday on Dev, and half my base had disappeared - or rather, had been misplaced! Yeah, quick fix would be great! Thanks.
Mass-closing all resolved issues not updated in the last month.
Please PM me in BI Forums (http://forums.bistudio.com/member.php?55374-Fireball) if you feel your bug was closed in error.