User Tools

Site Tools


modding:function:typhasattribute

Discuss this page on this pages TalkPage

typHasAttribute

Syntax (typHasAttribute unid attrib)
Arguments unid: The unid you want to check for attributes.
attrib: attribute to check for
Returns True if successful, Nil otherwise
Category type, unid, attributes
Description Use for checking if a type holds an attribute.

Example

(objHasAttribute "&scCorsair;" 'charonPirates)

Returns “true”.

Return to type functions list

Return to Functions list

modding/function/typhasattribute.txt · Last modified: 2017/01/20 04:29 by xephyr