ISInterface:FrameTryLock

From Lavish Software Wiki
Jump to navigation Jump to search

Syntax

  • bool FrameTryLock()

Purpose

See FrameLock.

This function attempts to acquire frame lock, but may fail and return immediately.

Usage

Parameters

none

Return Value

  • bool
true if the lock was acquired.

Examples

Example code
if (pISInterface->TryFrameLock())
{
  /* Safe to assume all game objects still exist until FrameUnlock is called */
  ... do stuff here
  pISInterface->FrameUnlock();
}

See Also