Squirrel Standard Library Functions: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
|}</big>
|}</big>


For example, if the user wants to get the number of seconds elapsed since the start of system, they can use clock() function (see System Library of squirrel manual) which returns the same as a float value.
For example, if the user wants to get the number of seconds ('''not milliseconds''') elapsed since the start of system, they can use clock() function (see System Library of squirrel manual) which returns the same as a float value.

Revision as of 05:40, 21 November 2022

In the npcscripts, the following standard [libraries] of Squirrel are included.

  • Input Output Library
  • System Library
  • Math Library
  • String Library
  • Blob Library

For example, if the user wants to get the number of seconds (not milliseconds) elapsed since the start of system, they can use clock() function (see System Library of squirrel manual) which returns the same as a float value.