scripting:baseworld
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:baseworld [2022/08/09 22:47] – [IsOcean();] jerryhopper | scripting:baseworld [2022/08/09 22:53] (current) – [TraceMove()] jerryhopper | ||
---|---|---|---|
Line 21: | Line 21: | ||
+ | --- | ||
Line 133: | Line 134: | ||
- | ==== QueryEntitiesByOBB(vector mins, vector maxs, vector matrix[4], QueryEntitiesCallback addEntity, QueryEntitiesCallback filterEntity = null, EQueryEntitiesFlags queryFlags = EQueryEntitiesFlags.ALL); | + | ==== QueryEntitiesByOBB() ==== |
- | /*! | + | |
+ | | ||
+ | |||
Query for entities touched by oriented box | Query for entities touched by oriented box | ||
\param mins | \param mins | ||
Line 151: | Line 154: | ||
\return | \return | ||
False when query was canceled. | False when query was canceled. | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== SchedulePreload(vector pos, float radius); ==== | + | ==== SchedulePreload() ==== |
+ | SchedulePreload(vector pos, float radius); | ||
+ | | ||
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetBoundBox(out vector mins, out vector maxs); ==== | + | ==== GetBoundBox() ==== |
+ | GetBoundBox(out vector mins, out vector maxs); | ||
+ | | ||
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetOceanHeight(float worldX, float worldZ); | + | ==== GetOceanHeight() ==== |
- | /*! | + | |
+ | | ||
Is ocean availabled | Is ocean availabled | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 274: | Line 283: | ||
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetCurrentCameraId(); ==== | + | ==== GetCurrentCameraId() ==== |
+ | |||
+ | GetCurrentCameraId(); | ||
Return type: [[scripting: | Return type: [[scripting: | ||
Line 428: | Line 439: | ||
| | ||
traces shape collision at start position, return <0 if we hit something | traces shape collision at start position, return <0 if we hit something | ||
- | //OUTPUT: | + | |
- | \returnsvalue 0 or negative number as penetration depth | + | OUTPUT: |
+ | returnsvalue 0 or negative number as penetration depth | ||
Line 439: | Line 451: | ||
TraceMove(inout TraceParam param, TraceEntitiesCallback filtercallback); | TraceMove(inout TraceParam param, TraceEntitiesCallback filtercallback); | ||
- | /*! | + | |
traces shape movement along start-> | traces shape movement along start-> | ||
- | //OUTPUT: | + | |
+ | OUTPUT: | ||
\returnsvalue 0...1, percentage of a path traveled | \returnsvalue 0...1, percentage of a path traveled | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 452: | Line 465: | ||
GetWorldTime(); | GetWorldTime(); | ||
- | //! Returns current lifetime of the World in milliseconds | + | Returns current lifetime of the World in milliseconds |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 460: | Line 473: | ||
GetFrameNumber(); | GetFrameNumber(); | ||
| | ||
- | //! Returns current frame of the World | + | Returns current frame of the World |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 468: | Line 481: | ||
GetTimeScale(); | GetTimeScale(); | ||
| | ||
- | //! Returns actual time scale of world, can be different from engine time scale | + | Returns actual time scale of world, can be different from engine time scale |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 488: | Line 501: | ||
IsEditMode(); | IsEditMode(); | ||
| | ||
- | //! Returns true during edit mode in Workbench and in Ingame editor | + | Returns true during edit mode in Workbench and in Ingame editor |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 496: | Line 509: | ||
UpdateEntities(); | UpdateEntities(); | ||
| | ||
- | //! Update active entities in the world, do not call from inside another world update (e.g. from IEntity:: | + | Update active entities in the world, do not call from inside another world update (e.g. from IEntity:: |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 504: | Line 517: | ||
CreateWorld(string type, string name); | CreateWorld(string type, string name); | ||
| | ||
- | //! Create new empty BaseWorld | + | Create new empty BaseWorld |
Return type: [[scripting: | Return type: [[scripting: |
scripting/baseworld.1660081638.txt.gz · Last modified: 2022/08/09 22:47 by jerryhopper