View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000240 | Gameplay + OpenGL | [All Projects] Feature | public | 2017-02-11 09:30 | 2017-02-13 17:59 |
Reporter | Nash | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | no change required | ||
Summary | 0000240: Export SingleActorFromTID to ZScript | ||||
Description | For situations where you want to do things in ZScript based on things with TIDs. | ||||
Tags | No tags attached. | ||||
Isn't that related to this one? https://mantis.zdoom.org/view.php?id=145 | |
I'd even be hesitant to add something like this to the standard ZScript library (once that becomes a thing), since there isn't a good general-case answer to the question "which actor do I choose if there's more than one?" ActorIterator has a learning curve, but it's worth learning. | |
No need. You can use an ActorIterator and just get the first return from it, that's exactly what this native function does. It's essentially: let it = ActorIterator.Create(tid); let ac = it.Next(); |
|
Okay got it, thanks! | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-11 09:30 | Nash | New Issue | |
2017-02-13 09:52 | ibm5155 | Note Added: 0000545 | |
2017-02-13 14:40 | Xaser | Note Added: 0000554 | |
2017-02-13 15:39 | Graf Zahl | Note Added: 0000560 | |
2017-02-13 15:40 | Graf Zahl | Status | new => resolved |
2017-02-13 15:40 | Graf Zahl | Resolution | open => no change required |
2017-02-13 17:59 | Nash | Note Added: 0000569 |