View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006043 | Spring engine | Unit Scripting | public | 2018-09-18 22:10 | 2018-09-19 11:02 |
| Reporter | StickyStains | Assigned To | |||
| Priority | high | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 104.0 | ||||
| Summary | 0006043: Spring.SetCameraState not working on Direction Vector | ||||
| Description | Camera state can not be set. The inherited SetStateMap does not seem to apply. | ||||
| Steps To Reproduce | function widget:GetInfo() return { name = "Minimal Testing Widget", desc = "Alters the camera direction at random - Drag&Drop into MTW.lua in Luaui/widgets", author = "PicassoCT", version = "2.0", date = "YearOfTheGNU ", license = "GNU GPL, v2 or later", layer = math.huge, hidden = false, handler = true, enabled = true -- loaded by default? } end function widget:Shutdown() end function widget:Initialize() end function widget:Update() camState = Spring.GetCameraState() assert(camState.dx) Spring.Echo("Valid Camera State loaded with vector",dx,dz,dy) camState.dx, camState.dz, camState.dy= math.random(-10,10)/10, math.random(-10,10)/10, math.random(-10,10)/10 Spring.Echo("Valid Camera State modified with vector",camState.dx, camState.dz, camState.dy) Spring.Eco("Altering Camstate") Spring.SetCameraState(camState) end | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
I tested this, and this works when not having the value assigned i assign :( Please close this issue |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-09-18 22:10 | StickyStains | New Issue | |
| 2018-09-18 22:12 | StickyStains | Note Added: 0019356 | |
| 2018-09-19 11:02 | Kloot | Status | new => closed |
| 2018-09-19 11:02 | Kloot | Resolution | open => no change required |