Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help SOLVED - Deactivate a Plane?
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#1
SOLVED - Deactivate a Plane?

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

(This post was last modified: 03-28-2014, 05:51 AM by MsHannerBananer.)
03-28-2014, 05:11 AM
Find Reply
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#2
RE: Deactivate a Plane?

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

03-28-2014, 05:20 AM
Find Reply
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#3
RE: Deactivate a Plane?

(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

03-28-2014, 05:26 AM
Find Reply
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#4
RE: Deactivate a Plane?

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

(This post was last modified: 03-28-2014, 05:40 AM by Fatalist.)
03-28-2014, 05:36 AM
Find Reply
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#5
RE: Deactivate a Plane?

(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

03-28-2014, 05:51 AM
Find Reply




Users browsing this thread: 1 Guest(s)