lfnetwork.com mark read register faq members calendar

Thread: Death by scripting?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 02-09-2009, 07:08 PM   #1
Malxados
Rookie
 
Malxados's Avatar
 
Join Date: Feb 2009
Location: Mandalore
Posts: 221
Current Game: Warframe, SC Blacklist, KOTOR1
Death by scripting?

I was wondering if/how you can kill someone using script attached to dialog (or any easier way) (example: Bob has been injured in a recent fight. When you talk to him, he will ask you to tell his wife he loved her. As soon as he's finished asking, he dies)

Malxados
Malxados is offline   you may: quote & reply,
Old 02-09-2009, 07:46 PM   #2
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
Yes, you can. Use the DestroyObject() function. It would look something like this.

Code:
void main() {
object oKill = GetObjectByTag( "persontokill" );
AssignCommand( oKill, ClearAllActions() );
SetCommandable( FALSE, oKill );
DestroyObject( oKill, 1.00 );
}
"persontokill" should be replaced with the tag of the creature in question. The 1.00 in DestroyObject() is a delay before deletion, so that the creature doesn't immediately disappear. You should use this script only at the very end of the dialog, else bad things might happen.

- Star Admiral
Star Admiral is offline   you may: quote & reply,
Old 02-09-2009, 08:08 PM   #3
Malxados
Rookie
 
Malxados's Avatar
 
Join Date: Feb 2009
Location: Mandalore
Posts: 221
Current Game: Warframe, SC Blacklist, KOTOR1
Thanks Star Admiral for the fast reply. Would his body still be in the ground as normal, or would it disappear. (Example: would I have to make a script to have Bob give me a note for his wife, or would I be able to put the note in his inventory and take it from his dead body?)
Malxados is offline   you may: quote & reply,
Old 02-09-2009, 08:51 PM   #4
Star Admiral
N7 Commando
 
Star Admiral's Avatar
 
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
Folder extraordinaire Helpful! 
His body would fade away, so if you want to him to give a note, it will have to be by scripting.

- Star Admiral
Star Admiral is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Death by scripting?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:29 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.