Lua Functions

Lua functions description and basic instructions

Lua Function
Description

bool aiHasKey("aiName", "keyName")

Check if blackboad has key with name.

bool aiGetBoolKey("aiName", "keyName")

Return bool key by name.

func aiSetBoolKey("aiName", "keyName", value)

Set bool key by name.

double aiGetFloatKey("aiName", "keyName")

Return float key by name.

func aiSetFloatKey("aiName", "keyName", value)

Set float key by name.

doubleaiGetIntKey("aiName", "keyName")

Return int key by name.

func aiSetIntKey("aiName", "keyName", value)

Set int key by name.

doubleaiGetLongKey("aiName", "keyName")

Return long key by name.

func aiSetLongKey("aiName", "keyName", value)

Set long key by name.

doubleaiGetShortKey("aiName", "keyName")

Return short key by name.

func aiSetShortKey("aiName", "keyName", value)

Set short key by name.

string aiGetStringKey("aiName", "keyName")

Return string key by name.

func aiSetStringKey("aiName", "keyName", value)

Set string key by name.

func aiSetVector2Key("aiName", "keyName", value, value)

Set Vector2 key by name.

func aiSetVector3Key("aiName", "keyName", value, value, value)

Set Vector3 key by name.

Last updated