Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hpl3:game:scripting:id_handles [2013/07/19 12:58] nebej |
hpl3:game:scripting:id_handles [2013/07/19 13:05] nebej |
||
---|---|---|---|
Line 67: | Line 67: | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | The retrieval functions perform safe cast. The ID for a Prop can be used to retrieve a Entity, but if you use it to try to retrieve a Area then it will return null. | ||
Line 79: | Line 82: | ||
A ID handle can be saved to the save file and it will retrieve the same object after load. The ID will also stay the same when working on the map which means that the save file will stay valid even after a patch on a map. This will also work with the realtime reload of the entity maptrack. | A ID handle can be saved to the save file and it will retrieve the same object after load. The ID will also stay the same when working on the map which means that the save file will stay valid even after a patch on a map. This will also work with the realtime reload of the entity maptrack. | ||
- | |||
- | |||
- | ===== Functions ===== | ||