thebeast505 Posted July 6, 2013 Share Posted July 6, 2013 Stumbled across this mod http://skyrim.nexusmods.com/mods/36350//?Which adds cannons to skyrim. Is there any way I can add a effect to them like so you activate it and it shoots a fireball spell? Link to comment Share on other sites More sharing options...
Pevey Posted July 6, 2013 Share Posted July 6, 2013 Yes, in the CK you would make it an Activator. Use can use static nifs as Activators. In the CK, duplicate an existing activator, rename it, and then change the mesh file location to the cannon mesh. Then, just add your script and put whatever you want the cannon to do within an OnActivate() event. Link to comment Share on other sites More sharing options...
vinniewryan Posted July 6, 2013 Share Posted July 6, 2013 Looking through the script there are a few things to take into account. The script is attached to the cannon, but the cannon has animations. These cause the mechanical parts to move, but have nothing to do with aiming so you can ignore them for now. The main function you should be interested in is: function launch()GoToState(busy); CWScript.Log("CWCatapultScript", self + "launch()")PlayAnimationAndWait(aeFire, aeLaunch) WeaponToFire.fire(self, AmmoToFire) EndFunction Where WeaponToFire.fire(self, AmmoToFire) is calling the 'fire ammo' function. In the beginning of this script, WeaponToFire is declared as type Weapon: Weapon Property WeaponToFire Auto{BASEOBJECT: Set this to CWCatapultWeapon, this is the weapon that the fire() function is called on.} This is as far as I've gotten for now, I'm gonna dig some things up from creationkit.com as I've never used these weapon functions. Link to comment Share on other sites More sharing options...
thebeast505 Posted July 7, 2013 Author Share Posted July 7, 2013 ok so here is what ive done so far,1. copied the catapult activator, weapon, and ammo. then renamed teh duplicates to CWcannon, CWcannonWeapon, CWcannonAmmo2. changed the catapult .nif to the cannon for the activator.3. added the catapult script to the cannon but changed "weapon to fire" from catapult to CWcannonWeapon and changed "Ammo to use" from CatapultAmmo to CWcannonAmmo.4. placed it in the world near riverwood. gonna take a break and try again later. thx for the help and would appreciate any more you can offer :) Link to comment Share on other sites More sharing options...
thebeast505 Posted July 7, 2013 Author Share Posted July 7, 2013 Got it too work! Just two problems.1. The cannon when activated the effect blows up right on top of it it doesn't shoot out like a fireball.2. It's a 1 time use then activating the cannon doesn't do anything :(And the cannon is called catapult that's it :) Thx guys plz help me finish this Link to comment Share on other sites More sharing options...
Recommended Posts