Frictional Games Forum (read-only)
[SCRIPT] SOLVED - Deactivate a Plane? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] SOLVED - Deactivate a Plane? (/thread-24937.html)



SOLVED - Deactivate a Plane? - MsHannerBananer - 03-28-2014

Just curious if this is possible? I can't find any kind of script to do so, nor any other kind of issues like this.

I have a water plane that is supposed to deactivate on script, simulating water draining. However, using SetEntityActive doesn't seem to work with Planes, which makes sense, given they aren't entities.

If there isn't a script do to this, and I have to open model editor, I don't have a problem with that, but I don't have a clue how to go about turning an animated plane into an entity, haha.

Thanks guys. Big Grin


RE: Deactivate a Plane? - Fatalist - 03-28-2014

It is not possible. Script functions not work with planes or static objects.


RE: Deactivate a Plane? - MsHannerBananer - 03-28-2014

(03-28-2014, 05:20 AM)Fatalist Wrote: It is not possible. Script functions not work with planes or static objects.

I was afraid of that... now what? T_T


RE: Deactivate a Plane? - Fatalist - 03-28-2014

You can create entity) For example, you will can use a plane_black.dae with water texture.

1. Copy plane_black.dae and rename it.
2. Open this file via Notepad++
3. Find strings:
<library_images>
<image id="plane_black_dds-img" name="plane_black_dds-img">
<init_from>plane_black.dds</init_from>
</image>
and change "plane_black.dds" to your water texture name. Save file.
4.Use Model editor Smile

Or use default Amnesia entity - entities\special\childsnake_floor_water\childsnake_floor_water_normal.ent


RE: Deactivate a Plane? - MsHannerBananer - 03-28-2014

(03-28-2014, 05:36 AM)Fatalist Wrote: You can create entity) For example, you will can use a plane_black.dae with water texture.

1. Copy plane_black.dae and rename it.
2. Open this file via Notepad++
3. Find strings:
<library_images>
<image id="plane_black_dds-img" name="plane_black_dds-img">
<init_from>plane_black.dds</init_from>
</image>
and change "plane_black.dds" to your water texture name. Save file.
4.Use Model editor Smile

Or use default Amnesia entity - entities\special\childsnake_floor_water\childsnake_floor_water_normal.ent

I didn't know that there was something like that! D:

That solves my problem! I had no idea there was an entity like that. *Facepalm* Thanks! XDD