Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Make an explosion

Page: 1 of 1
 Vox Kalam
10-05-2007, 8:30 PM
#1
Any way to make an explosion effect at a door at the moment ir opens? To make it look as though it's being blown open?
 Vox Kalam
10-07-2007, 10:27 AM
#2
Sorry to bump, but it's been two days...

I'm sorry about you not getting a response Vox, but we do not allow 'bumping' here, please do not bump a thread like this again. -RH
 Tupac Amaru
10-07-2007, 1:07 PM
#3
Open the .utd file of the door and put this script in the onOpen event of the door:void main() {
int nDamage = 20;

// Apply some damage to door opener.
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(nDamage, DAMAGE_TYPE_PIERCING), GetLastOpenedBy());

// Explosion.
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(3003), GetLocation(OBJECT_SELF));

}Save the .utd and script into override. The changes won't take effect if you use a save where you have already entered the module before. Make sure the template file name for the door is unique.
 Vox Kalam
10-07-2007, 6:04 PM
#4
That worked, thanks.
 Darth Xander
10-08-2007, 2:16 AM
#5
Open the .utd file of the door and put this script in the onOpen event of the door:void main() {
int nDamage = 20;

// Apply some damage to door opener.
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(nDamage, DAMAGE_TYPE_PIERCING), GetLastOpenedBy());

// Explosion.
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(3003), GetLocation(OBJECT_SELF));

}Save the .utd and script into override. The changes won't take effect if you use a save where you have already entered the module before. Make sure the template file name for the door is unique.
how does scripting like that actually work?
 Tupac Amaru
10-10-2007, 12:37 PM
#6
how does scripting like that actually work?All that script does is to apply some effects. You tell the game which effects to use and where they should be applied.
Page: 1 of 1