Scripting question and wondering about art assets

Post » Tue Jun 19, 2012 8:34 am

I'm trying to run a script that kills any actor who walks into the trigger area. I set up a collision box and created a script attached to it. The script I have written is:
Scriptname KillonEnterScript extends ObjectReference{Kills Actor when it enters the trigger.}Event OnTriggerEnter(ObjectReference akActionRef)If (akActionRef as Actor)(akActionRef as Actor).Kill()EndIfEndEvent
This does not seem to work when I fall into the collision box, am I missing something? It compiles fine.

Furthermore, in the caves I am building, I want there to be a pit where, when the player looks down into it, all he/she sees is complete pitch black, hinting that the pit is incredibly deep. However, I can't seem to find any art assets that are just a layer/box of darkness. Are there any, or even a way to do this in any manner? (My intent with both of these is to put the collision box where the darkness is, so that if the player falls down into the pit he/she is instantly killed.

Thanks in advance for any help.
User avatar
Haley Merkley
 
Posts: 3356
Joined: Sat Jan 13, 2007 12:53 pm

Post » Tue Jun 19, 2012 6:55 pm

In order to make a pitch black area you have two options, one is to completly set the ambient light of the cell to 0, this will cause the whole cell beign pitch black where there isn't a light, or another way is to make new art assets that fade to black color, making a specular that doesn't reflect on the black part and a diffuse map with black color.

Or maybe you may use a trick, put some mist on the pit, that cover partof the walls, Dwemer mist type of effects are pretty heavy and they cover well, then use some sounds like wind ecgoing in the pit to make it feel really deep.

As for the script, it seems ok to me, so no idea why it wouldn't work. Have you tried firing it with a clean savegame? Just coc to the area from the mainmenu.
User avatar
Fiori Pra
 
Posts: 3446
Joined: Thu Mar 15, 2007 12:30 pm

Post » Tue Jun 19, 2012 7:17 am

Thanks for the reply, just a few followup things. I liked the mist idea but I am unable to find any "dwemer mist effects". I checked all the FX assets and tried out all the ones mist or fog related and none were really thick/dense enough to fully block line of sight. Was there a specific one you were referencing?

For the script, I tried going straight to the cell with coc at the menu and the kill script still doesn't work. Do I have to add certain properties to the script because currently it has none?

(tangential question: how do I delete new scripts I have created?)
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am

Post » Tue Jun 19, 2012 12:28 pm

Put for than one fog effect to densify if it isn't enough, also on the lighting interior of your area, try to play with the fog settings, I think you can give it a direction.

For the script no properties are needed I think, you just interact with the player not anything else. To delete it, just remove the script from your object then browse the folder Scripts in your Data folder of skyrim, there is where it saves scripts unlike past games.
User avatar
Ernesto Salinas
 
Posts: 3399
Joined: Sat Nov 03, 2007 2:19 pm

Post » Tue Jun 19, 2012 11:58 am

For a black object, There is a blackplane.Nif in Skyrim/Data/Meshes/Markers.

I have seen it in the CS, and it is just a black square, but not sure how it shows ingame.
In cs it is under Statics/ Markers and the first on the list.
User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am

Post » Tue Jun 19, 2012 5:55 am

Ah yeah I think is the one used behind teleport doors, you may try to use that but still the walls of the hole would e noticeable.
User avatar
kristy dunn
 
Posts: 3410
Joined: Thu Mar 01, 2007 2:08 am


Return to V - Skyrim