generated from Jaysyn/ModuleTemplate
24 lines
2.1 KiB
Plaintext
24 lines
2.1 KiB
Plaintext
#include "x2_inc_toollib"
|
|
void main()
|
|
{
|
|
if(GetLocalInt(OBJECT_SELF, "area_flooded") == TRUE) return;
|
|
SetLocalInt(OBJECT_SELF, "area_flooded", TRUE);
|
|
int iWidth = GetAreaSize(AREA_WIDTH, GetArea(OBJECT_SELF));
|
|
int iHeight = GetAreaSize(AREA_HEIGHT, GetArea(OBJECT_SELF));
|
|
TLChangeAreaGroundTiles(GetArea(OBJECT_SELF),X2_TL_GROUNDTILE_WATER,iWidth,iHeight, 1.9f);
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(452)), GetObjectByTag("caran_ruined_archway_1")); //ruined arch
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(452)), GetObjectByTag("caran_ruined_archway_2")); //ruined arch
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_1")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_2")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_3")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_4")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_5")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(405)), GetObjectByTag("caran_scene_light_6")); //light
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(433)), GetObjectByTag("caran_ruin_1")); //ruin
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(428)), GetObjectByTag("caran_waterfall_1"));
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(428)), GetObjectByTag("caran_waterfall_2"));
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(428)), GetObjectByTag("caran_waterfall_3"));
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectVisualEffect(428)), GetObjectByTag("caran_waterfall_4"));
|
|
}
|