Løve Posted July 30, 2006 Share Posted July 30, 2006 Hi I'm trying to make a script for a custom weapon to instantly kill someone when you are stealthed and sneak attacking them from behind. It's meant as an assasin dagger to kill instantly from behind when unnoticed because I'm tired of people surviving getting stabbed in the back with a sword. I haven't got too much experience with scripting, so so far I've come up with something that won't compile. =/ ScriptName InstantDeath Begin OnHit Kill ActorId (optional) End Any help would be appreciated. :) Link to comment Share on other sites More sharing options...
thursti Posted July 30, 2006 Share Posted July 30, 2006 or make the multiplier *10000... instant kill ;) Link to comment Share on other sites More sharing options...
Løve Posted July 30, 2006 Author Share Posted July 30, 2006 Wont that send people flying seen how the Havok physics work? Link to comment Share on other sites More sharing options...
thursti Posted July 30, 2006 Share Posted July 30, 2006 not sure haven't tried I just no it will kill almost all the time unless you have 100% melee absorbation or something. Link to comment Share on other sites More sharing options...
Løve Posted July 30, 2006 Author Share Posted July 30, 2006 I've heard that the Havok engine will send people flying though depending on the amount of damage you do... so a 10000 multiplier and i'm afraid ill never see them again... Link to comment Share on other sites More sharing options...
CJD Posted July 30, 2006 Share Posted July 30, 2006 we hav to be able to do it Spinter Cell style, or else ur goin to hav to do the multipllier. or....damn i forgot Link to comment Share on other sites More sharing options...
pwijnands66 Posted August 1, 2006 Share Posted August 1, 2006 If you want a weapon to kill instantly when stealthed you could do the following: Create the following script in the construction set (make sure the script is a magical effect; you can select this in the upper right corner): SCN instantdeath short playerdetected Begin GameMode if ( GetDetected player ) returnelse killendif End Once you have created the script you have to create an enchantment. You then have to add a scripted effect to the enchantment (it's in the effect list). Use the script you just created. Then you have to add the enchantment to the weapon you want to give the instant sneak kill. If you want to kill essential caracters too you can change the part of the script in between else and endif (kill) with the following:if IsEssential SetEssential 0 Killelse kill Be aware that you will break quests when you use this. Link to comment Share on other sites More sharing options...
Løve Posted August 1, 2006 Author Share Posted August 1, 2006 <3 pwinjnands66 Thanks for the help. :) Link to comment Share on other sites More sharing options...
Løve Posted August 3, 2006 Author Share Posted August 3, 2006 Hm, I can't seem to get the effect to work when I've added the scripted enchantement to the weapon... it doesn't kill people when I'm stealthed. The visual effect is showing though. Link to comment Share on other sites More sharing options...
thursti Posted August 3, 2006 Share Posted August 3, 2006 does it do damage or does it just play the visual? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.