AW ENTER GLOBAL

From ActiveWiki
Jump to: navigation, search


Minimum requirements
Added in version 3.3
SDKbuild 24


AW_ENTER_GLOBAL

Type

Boolean

Description

Enter a world in global mode.

Notes

This attribute indicates whether the instance should run in global mode the next time it calls aw_enter.

Only instances owned by a caretaker (i.e. aw_bool (AW_WORLD_CARETAKER_CAPABILITY) returns 1) may use global mode.

Usage

C

aw_bool_set (AW_ENTER_GLOBAL, 1);
if (rc = aw_enter ("AWTeen"))
{
  printf ("Unable to enter world (reason %d)\n", rc);
  return;
}

VB6

Public Function EnterWorld(vSDK as AwSdk41, strWorld as String, Optional boolGlobal as Boolean = True)
  vSDK.aw_bool_set AW_ENTER_GLOBAL, boolGlobal
  AW_RC = vSDK.aw_enter strWorld
  If AW_RC > 0 Then
    Debug.Print "Unable to enter " & strWorld & ". Reason " & ltrim(str(AW_RC)) & "."
  End If
End Function

Used by