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:44] – [RemoveDecal(Decal decal);] 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: | ||
- | ==== IsOcean(); ==== | + | ==== IsOcean() ==== |
- | /*! | + | |
+ | IsOcean(); | ||
+ | |||
Get water ocean height at given point | Get water ocean height at given point | ||
\param worldXworld x position | \param worldXworld x position | ||
\param worldZworld z position | \param worldZworld z position | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetOceanHeightAndDisplace(float worldX, float worldZ); | + | ==== GetOceanHeightAndDisplace() ==== |
- | /*! | + | |
+ | | ||
+ | |||
Get water ocean height and displacement at given point, returns vector(displaceX, | Get water ocean height and displacement at given point, returns vector(displaceX, | ||
\param worldXworld x position | \param worldXworld x position | ||
\param worldZworld z position | \param worldZworld z position | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetOceanBaseHeight(); ==== | + | ==== GetOceanBaseHeight() ==== |
- | /*! | + | |
+ | GetOceanBaseHeight(); | ||
return base ocean level | return base ocean level | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== IsOceanEnabledInCamera(int camera); ==== | + | ==== IsOceanEnabledInCamera() ==== |
- | /*! | + | |
+ | IsOceanEnabledInCamera(int camera); | ||
is in camera ocean enabled? | is in camera ocean enabled? | ||
\param cameracamera | \param cameracamera | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== EnabledOceanInCamera(int camera, bool enable); | + | ==== EnabledOceanInCamera() ==== |
- | /*! | + | |
+ | | ||
enable ocean render in some camera | enable ocean render in some camera | ||
\param cameracamera | \param cameracamera | ||
\param enableenabled = true | \param enableenabled = true | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== RegisterWaterBody(notnull IEntity ent, ResourceName matName); | + | ==== RegisterWaterBody() ==== |
- | /* | + | |
+ | | ||
water body | water body | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== RemoveWaterBody(notnull IEntity ent); ==== | + | ==== RemoveWaterBody() ==== |
- | /* | + | |
+ | RemoveWaterBody(notnull IEntity ent); | ||
remove water body | remove water body | ||
- | */ | + | |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 259: | Line 283: | ||
Return type: [[scripting: | Return type: [[scripting: | ||
- | ==== GetCurrentCameraId(); ==== | + | ==== GetCurrentCameraId() ==== |
+ | |||
+ | GetCurrentCameraId(); | ||
Return type: [[scripting: | Return type: [[scripting: | ||
Line 413: | 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 424: | 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 437: | 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 445: | Line 473: | ||
GetFrameNumber(); | GetFrameNumber(); | ||
| | ||
- | //! Returns current frame of the World | + | Returns current frame of the World |
Return type: [[scripting: | Return type: [[scripting: | ||
Line 453: | 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 473: | 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 481: | 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 489: | 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.1660081454.txt.gz · Last modified: 2022/08/09 22:44 by jerryhopper