playMaker

Author Topic: How do i edit terrain width/Length with PM  (Read 1839 times)

koop4

  • Playmaker Newbie
  • *
  • Posts: 5
How do i edit terrain width/Length with PM
« on: March 06, 2014, 06:33:16 AM »
Hi all,
I'm trying to manage width & Length of my terrain with PM.
 have a FSM attached to it, but it's not clear to my how to modify this component variable.

I've tried to work with the "get component" setting the object as "script" but wit no results.

Thanks in advance
Rob

[OT] feel free to correct my eng! (i am trying to improve it too)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How do i edit terrain width/Length with PM
« Reply #1 on: March 06, 2014, 07:36:49 AM »
Hi,

 I don't think you can do that actually. what would be the purpose of this? you do mean a "unity" terrain right?

bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How do i edit terrain width/Length with PM
« Reply #2 on: March 06, 2014, 07:37:04 AM »
I dont think you can edit the height/width resolution at runtime as this would clear the heightmap and flatten it. You might need another tool like RTP or something.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

koop4

  • Playmaker Newbie
  • *
  • Posts: 5
Re: How do i edit terrain width/Length with PM
« Reply #3 on: March 06, 2014, 08:09:51 AM »
Quote
1) you do mean a "unity" terrain right?

2) what would be the purpose of this?

1) yes
2) I was thinking to make a dynamic level generation, where a UnityObject's FSM generates every level's object.
So i could use a pattern to generate the level dinamically, taking width/length/height of various object from a db.

Rob

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How do i edit terrain width/Length with PM
« Reply #4 on: March 06, 2014, 09:14:51 AM »
You should be able to just store the terrain's you create in the project, then create them at runtime. Haven't tried this myself though.

Otherwise, you might want to look into getting some terrain stitching tools or at least an extended terrain asset as this is something that could get pretty complicated, especially at seams. Generating random levels isn't that bad, but terrain can get hairy.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D