View Single Post
Old 03-26-2013, 05:03 PM   #3
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,280
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Quote:
Originally Posted by arsenalforever View Post
I made the following script by following a tutorial video on YouTube for TSL:


Code:
void main()
{
object ONPC = GetObjectByTag("dgon");
int bPassive=FALSE;
AssignCommand(ONPC, ActionAttack(GetFirstPC(), bPassive));
}
How do I execute the above script? I'm using KOTOR tool and know C++
That script looks right... so what exactly is your question? Do you want to know how to compile the script or get it to actually play in-game (getting it to play in-game could be done in a number of ways, so it would be helpful to know where/when/during what event you intend to have this script executed)?


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,