ScenEdit_SetSideOptions (table)
This function updates the side options - 'awareness' and 'proficiency'
Parameters
-
table
{}
- side = string The side guid/name
- awareness = Awareness The side awareness
- proficiency = Proficiency The side proficiency
- switchto = True/False [optional] Switch the current side to the 'side' parameter.
Returns
table {}- side string Side name
- guid string Side guid
- awareness string Side awareness
- proficiency string Side proficiency
Example
Set the side to 'blind' awareness and 'normal' proficiency. Note the use of the description or code number.
local a = ScenEdit_SetSideOptions({side='sidea', awareness = 'blind', PROFICIENCY= 2})
print(a)
if a.awareness == 'Normal' then print('awareness is normal') end
if a.proficiency == 'Regular' then print('proficiency is regular') end
Output