The getEventParam native AI script function is used to retrieve the content of a parameter passed by an EGS ai_event message.
(value: f)getEventParam(paramIndex: f) // getEventParam_f_f
(value: s)getEventParam(paramIndex: f) // getEventParam_f_s
(val)getEventParam(2);
In this example, the function getEventParam
is called with an index of 2, which corresponds to the third parameter passed by the EGS ai_event message. The value of this parameter is returned as a float and stored in the variable val
.
($val)getEventParam(2);
In this example, the function getEventParam
is called with an index of 2, and the value of the parameter is returned as a string and stored in the variable val
.