wiki.sine.space | sinespace

Difference between revisions of "Scripting/SScript"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/sscript")
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The 'Space' global accessible in every script (for C# scripts, this inherits from the [[Scripting/SpaceScript|SpaceScript]] base class)
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/sscript
 
+
It has the following members:
+
 
+
{{ScriptFunction|SInventory|Inventory}}
+
* [[Scripting/SPersistence]] Persistence
+
* [[Scripting/SScene]] Scene
+
* [[Scripting/SHost]] Host
+
* [[Scripting/SPhysics]] Physics
+
* [[Scripting/SMath]] Math
+
* [[Scripting/SString]] String
+
* [[Scripting/SInput]] Input
+
* [[Scripting/SCameraManager]] Camera
+
* [[Scripting/SWebService]] WebServices
+
* [[Scripting/SNetwork]] Network
+
* [[Scripting/SResource]][] Resources
+
* float Time ''The current viewer time - this will usually correlate with the number of seconds the player has been in the current scene, increments each frame, typically used for animation/tweening''
+
* DateTime ServerTime ''The current server time - usually UTC, as according to the login server.''
+
* float DeltaTime ''The current time between this frame, and the previous frame, as used in Update, LateUpdate events, if moving a object, you can multiply it by DeltaTime to get a consistent speed''
+
* void Log(string text) ''Logs the message to the script debug console''
+

Latest revision as of 07:13, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/sscript