bool xsAddRuntimeEvent( string foo, string bar, int something ) : Setups a runtime event. Don't use this.
bool xsAddRuntimeEvent( string foo, string bar, int something ):设置一个运行时事件。不要使用此功能。
int xsArrayCreateBool(int size, bool defaultValue, string name) : creates a sized and named boolean array, returning an arrayID.
int xsArrayCreateBool(int size, bool defaultValue, string name):创建一个具有指定大小和名称的布尔数组,并返回数组ID。
int xsArrayCreateFloat(int size, float defaultValue, string name) : creates a sized and named float array, returning an arrayID.
int xsArrayCreateFloat(int size, float defaultValue, string name):创建一个具有指定大小和名称的浮点数组,并返回数组ID。
int xsArrayCreateInt(int size, int defaultValue, string name) : creates a sized and named integer array, returning an arrayID.
int xsArrayCreateInt(int size, int defaultValue, string name):创建一个具有指定大小和名称的整数数组,并返回数组ID。
int xsArrayCreateString(int size, string defaultValue, string name) : creates a sized and named string array, returning an arrayID.
int xsArrayCreateString(int size, string defaultValue, string name):创建一个具有指定大小和名称的字符串数组,并返回数组ID。
int xsArrayCreateVector(int size, vector defaultValue, string name) : creates a sized and named vector array, returning an arrayID.
int xsArrayCreateVector(int size, vector defaultValue, string name):创建一个具有指定大小和名称的向量数组,并返回数组ID。
bool xsArrayGetBool(int arrayID, int index) : Gets the value at the specified index in the requested array.
bool xsArrayGetBool(int arrayID, int index):获取指定数组中指定索引处的值。
float xsArrayGetFloat(int arrayID, int index) : Gets the value at the specified index in the requested array.
float xsArrayGetFloat(int arrayID, int index):获取指定数组中指定索引处的值。
int xsArrayGetInt(int arrayID, int index) : Gets the value at the specified index in the requested array.
int xsArrayGetInt(int arrayID, int index):获取指定数组中指定索引处的值。
int xsArrayGetSize(int arrayID) : Gets the specified array's size.
int xsArrayGetSize(int arrayID):获取指定数组的大小。
string xsArrayGetString(int arrayID, int index) : Gets the value at the specified index in the requested array.
string xsArrayGetString(int arrayID, int index):获取指定数组中指定索引处的字符串值。
vector xsArrayGetVector(int arrayID, int index) : Gets the value at the specified index in the requested array.
vector xsArrayGetVector(int arrayID, int index):获取指定数组中指定索引处的向量值。
int xsArraySetBool(int arrayID, int index, bool value) : Sets a value at the specified index in the requested array.
int xsArraySetBool(int arrayID, int index, bool value):在指定数组的指定索引处设置一个布尔值。
int xsArraySetFloat(int arrayID, int index, float value) : Sets a value at the specified index in the requested array.
int xsArraySetFloat(int arrayID, int index, float value):在指定数组的指定索引处设置一个浮点值。
int xsArraySetInt(int arrayID, int index, int value) : Sets a value at the specified index in the requested array.
int xsArraySetInt(int arrayID, int index, int value):在指定数组的指定索引处设置一个整数值。
int xsArraySetString(int arrayID, int index, string value) : Sets a value at the specified index in the requested array.
int xsArraySetString(int arrayID, int index, string value):在指定数组的指定索引处设置一个字符串值。
int xsArraySetVector(int arrayID, int index, vector value) : Sets a value at the specified index in the requested array.
int xsArraySetVector(int arrayID, int index, vector value):在指定数组的指定索引处设置一个向量值。
void xsDisableRule( string ruleName ) : Disables the given rule.
void xsDisableRule( string ruleName ):禁用指定规则。
void xsDisableRuleGroup( string ruleGroupName ) : Disables all rules in the given rule group.
void xsDisableRuleGroup( string ruleGroupName ):禁用指定规则组中的所有规则。
void xsDisableSelf( void ) : Disables the current rule.
void xsDisableSelf( void ):禁用当前规则。
int xsDumpArrays() : blogs out all XS arrays.
int xsDumpArrays():将所有XS数组写入日志。
void xsEnableRule( string ruleName ) : Enables the given rule.
void xsEnableRule( string ruleName ):启用指定的规则。
void xsEnableRuleGroup( string ruleGroupName ) : Enables all rules in the given rule group.
void xsEnableRuleGroup( string ruleGroupName ):启用指定规则组中的所有规则。
int xsGetContextPlayer( void ) : Returns the current context player ID.
int xsGetContextPlayer( void ):返回当前上下文玩家的ID。
int xsGetFunctionID( string functionName ) : Runs the secret XSFID for the function. USE WITH CAUTION.
int xsGetFunctionID( string functionName ):执行该函数的秘密 XSFID。请谨慎使用。
int xsGetTime( void ) : Returns the current gametime (in milliseconds).
int xsGetTime( void ):返回当前游戏时间(以毫秒为单位)。
bool xsIsRuleEnabled( string ruleName ) : Returns true if the rule is enabled.
bool xsIsRuleEnabled( string ruleName ):如果规则已启用,则返回true。
void xsIsRuleGroupEnabled( string ruleGroupName ) : Returns true if the rule group is enabled.
void xsIsRuleGroupEnabled( string ruleGroupName ):如果规则组已启用,则返回true。
void xsSetContextPlayer( int playerID ) : Sets the current context player ID (DO NOT DO THIS IF YOU DO NOT KNOW WHAT YOU ARE DOING).
void xsSetContextPlayer( int playerID ):设置当前上下文玩家ID(如果不了解后果,请勿使用)。
void xsSetRuleMaxInterval( string ruleName, int interval ) : Sets the max interval of the given rule.
void xsSetRuleMaxInterval( string ruleName, int interval ):设置指定规则的最大间隔。
void xsSetRuleMaxIntervalSelf( int interval ) : Sets the max interval of the current rule.
void xsSetRuleMaxIntervalSelf( int interval ):设置当前规则的最大间隔。
void xsSetRuleMinInterval( string ruleName, int interval ) : Sets the min interval of the given rule.
void xsSetRuleMinInterval( string ruleName, int interval ):设置指定规则的最小间隔。
void xsSetRuleMinIntervalSelf( int interval ) : Sets the min interval of the current rule.
void xsSetRuleMinIntervalSelf( int interval ):设置当前规则的最小间隔。
void xsSetRulePriority( string ruleName, int priority ) : Sets the priority of the given rule.
void xsSetRulePriority( string ruleName, int priority ):设置指定规则的优先级。
void xsSetRulePrioritySelf( int priority ) : Sets the priority of the current rule.
void xsSetRulePrioritySelf( int priority ):设置当前规则的优先级。
float xsVectorGetX( vector v ) : Returns the x component of the given vector.
float xsVectorGetX( vector v ):返回给定向量的x分量。
float xsVectorGetY( vector v ) : Returns the y component of the given vector.
float xsVectorGetY( vector v ):返回给定向量的y分量。
float xsVectorGetZ( vector v ) : Returns the z component of the given vector.
float xsVectorGetZ( vector v ):返回给定向量的z分量。
float xsVectorLength( vector v ) : Returns the length of the given vector.
float xsVectorLength( vector v ):返回给定向量的长度。
float xsVectorNormalize( vector v ) : Returns the normalized version of the given vector.
float xsVectorNormalize( vector v ):返回给定向量的单位化版本。
float xsVectorSet( float x, float y, float z ) : Set the 3 components into a vector, returns the new vector.
float xsVectorSet( float x, float y, float z ):设置向量的三个分量,并返回新向量。
float xsVectorSetX( vector v, float x ) : Set the x component of the given vector, returns the new vector.
float xsVectorSetX( vector v, float x ):设置给定向量的x分量,并返回新向量。
float xsVectorSetY( vector v, float y ) : Set the y component of the given vector, returns the new vector.
float xsVectorSetY( vector v, float y ):设置给定向量的y分量,并返回新向量。
float xsVectorSetZ( vector v, float z ) : Set the z component of the given vector, returns the new vector.
float xsVectorSetZ( vector v, float z ):设置给定向量的z分量,并返回新向量。
sqrt(float x): Returns the square root of x.
sqrt(float x):返回 x 的平方根。