HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Having problems with Terrain Deformations :(

03-20-2005, 10:42 AM#1
Lil Blue Smurf
Okay, I am having some problems here. First, my test code:
Code:
BurrowThing Copy Copy
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        Environment - Create a 0.02 second Permanent crater deformation at TempPoint with radius 5.00 and depth -75.00
        Region - Center Burrow <gen> on (TempPoint offset by 25.00 towards Angle degrees)
        Set TempPoint = (Center of Burrow <gen>)

(I know this leaks, it is just a test trigger)

This is not working at all how I thought it would. Basically, it only creates a bump very occasionally. What I am trying to do is make it look like something is burrowing under the ground, and would ideally even like the deformaions to be temporary, but when I set them to temporary the bumps show up even less often. Any help would be greatly appreciated. I have no clue why it is doing this, is there maybe some limit on deformations, like the game only accepts 1 every second or something?
03-20-2005, 12:38 PM#2
johnfn
Err, this may have something to do with the fact that you dont set temppoint until after the trigger. So first it will be set to the center of the map , and then it will set itself to exactly where it was before, and this will just keep happening... Is there another trigger I dont know about? Because it doesnt look like this is going to do anything other then make one bump.
03-20-2005, 05:48 PM#3
Lil Blue Smurf
Quote:
Originally Posted by johnfn
Err, this may have something to do with the fact that you dont set temppoint until after the trigger. So first it will be set to the center of the map , and then it will set itself to exactly where it was before, and this will just keep happening... Is there another trigger I dont know about? Because it doesnt look like this is going to do anything other then make one bump.


I am not destroying 'temppoint' so no, it wouldn't reset to the center. I know it doesn't as I created a sfx at each point on 1 test to make sure of that. There would also not be random mounds, as is the case, just one in the center.
03-20-2005, 06:04 PM#4
aaero
I spent a lot of time working on terrain deformations and found out that they don't quite work how you would expect.

First of all, temporary terrain deformations rise and fall over the course of the duration (in your case, .02 seconds). Secondly, permanent terrain deformations are permanent, the .02 seconds is the "build time".

I made a spell that does something extremely similar to this (ok the exact same thing) and imo, it would be better to create a very long temporary wave deformation. Give it a small radius and a decent depth and have it run from Point A to Point B. Just try it, it really has that cartoon gofer effect it sounds like you are shooting for.

If that doesn't work or you, I would recommend changing the order of your trigger a bit. Even though it looks like it should work, it seems to be it would be more accurate to say "Set Temppoint = Temppoint offset by 25 towards Angle" and then create the region there, rather than creating a region that's offset and then setting temppoint to the center of that region.