how might one move a placeable via script? specifically I would like to place the laval floor placeable and have it rise higher during a cutscene.
moving a placeable via script
Débuté par
Quilistan
, oct. 03 2011 02:39
#1
Posté 03 octobre 2011 - 02:39
#2
Posté 03 octobre 2011 - 06:24
Placeable can't move.
Soyou have to cheat.
2 possibility, easiest one : destroy the placeable and make a new one.
The one you might want to use, the same used in the OC:
Use a creature with the appearance of your placeable, the creature can moves.
Soyou have to cheat.
2 possibility, easiest one : destroy the placeable and make a new one.
The one you might want to use, the same used in the OC:
Use a creature with the appearance of your placeable, the creature can moves.
#3
Posté 03 octobre 2011 - 11:59
They can be rescaled as well. Maybe making the lava plane progressively thicker (i.e. SetScale(1,1, 1000)) will get you what you need.
#4
Posté 03 octobre 2011 - 03:13
I made a script that makes an icicle fall from the ceiling. Here is the logic:
Create 10-20 copies of the placeable at different heights, all set to 0.001 scale in x,y,z axis. Then you want to sequentially scale them to 1,1,1 (or whatever size you want), then shrink them again quickly. After the script runs, you can destroy them.
It takes some trickery to adjust the timing of the resizing and I don't recommend more than 20-30 copies because it will bog down, but it works.
Create 10-20 copies of the placeable at different heights, all set to 0.001 scale in x,y,z axis. Then you want to sequentially scale them to 1,1,1 (or whatever size you want), then shrink them again quickly. After the script runs, you can destroy them.
It takes some trickery to adjust the timing of the resizing and I don't recommend more than 20-30 copies because it will bog down, but it works.
#5
Posté 03 octobre 2011 - 06:34
You might also let the camera do the work for you, though in this instance it may not work.
Use an invisible person then move them towards the object using a static camera set to follow. As the camera move towards the object it will fill the screen and appear to rise.
PJ
Use an invisible person then move them towards the object using a static camera set to follow. As the camera move towards the object it will fill the screen and appear to rise.
PJ
#6
Posté 03 octobre 2011 - 08:28
Yep - I would guess you could do it with waypoints as well and spawn the lava floor in 20 times in successively higher positions - you can createobjectvoid do delay create object on a delay of like 0.5 for each layer.
you will need to #include "nw_i0_2q4luskan" (it hides in the campaign folder of the OC)
you will need to #include "nw_i0_2q4luskan" (it hides in the campaign folder of the OC)
#7
Posté 03 octobre 2011 - 09:13
It sounds like a really neat idea. Best of luck getting it to work. If you get hung up, PM me and I will try to help. I know it can be done.
#8
Posté 03 octobre 2011 - 09:36
Take a look at my CSL library, i have a rising water effect which works the same way in the environment include, triggered via a chat command. It actually keeps track of how hard the rain is falling and will slowly rise based on that. I also a have code to handle being in a fiery area like a lava flow, and make it affect all a casters spells appropriately. Its a set of placed effects, distributed across the area, but you sure can position them as needed like you describe.
I always thought of magma coming laterally at you, more like a tidal wave or slow moving river, than filling up an entire area, but i imagine if you are inside a magma pool which starts out empty this could happen.
Basically that is all the pieces you need i've got working, just reworking things so it's magma instead of water. Technically i'd assume if you are under magma you'd also have to deal with not being able to breath as well, but i'd imagine the heat would make that more of a distraction. I'd probably want to make fire and earth elementals very happy in such terrain, and make things like iron body and stone skin useful defenses as well.
( there is also a rising water thing on the vault, which is a similar idea and far less sophisticated than what i've done, might eventually implement this myself at some point, a DM would love to have the option of destroying an area by water and then by magam
)
I always thought of magma coming laterally at you, more like a tidal wave or slow moving river, than filling up an entire area, but i imagine if you are inside a magma pool which starts out empty this could happen.
Basically that is all the pieces you need i've got working, just reworking things so it's magma instead of water. Technically i'd assume if you are under magma you'd also have to deal with not being able to breath as well, but i'd imagine the heat would make that more of a distraction. I'd probably want to make fire and earth elementals very happy in such terrain, and make things like iron body and stone skin useful defenses as well.
( there is also a rising water thing on the vault, which is a similar idea and far less sophisticated than what i've done, might eventually implement this myself at some point, a DM would love to have the option of destroying an area by water and then by magam
Modifié par painofdungeoneternal, 03 octobre 2011 - 09:41 .
#9
Posté 04 octobre 2011 - 06:14
Thanks all for the replies. I started working with M. Rieders idea which was my first thought also. Then I found this:
http://www.sunjammer...eload_coolmenus
which I think does a similar thing just all through scripting(over my head scripting). Though after testing it I fear it doesn't work on the Z axis (though not totally sure yet).
Pain I will be looking at your CSL Library next.
http://www.sunjammer...eload_coolmenus
which I think does a similar thing just all through scripting(over my head scripting). Though after testing it I fear it doesn't work on the Z axis (though not totally sure yet).
Pain I will be looking at your CSL Library next.
#10
Posté 06 octobre 2011 - 06:12
Just an fyi: Sunjammer's script set linked above worked great for this idea! and does work on the Z axis also.
I now have a deep pitted room that fills with lava !!!
I now have a deep pitted room that fills with lava !!!





Retour en haut






