User Tools

Site Tools


hpl3:game:scripting:id_handles

Link to this comparison view

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 ===== 
  
hpl3/game/scripting/id_handles.txt ยท Last modified: 2015/09/11 10:50 by ian.thomas