The Source Posted November 22, 2006 Share Posted November 22, 2006 (TSL) Script Search: How to make a placeable fire off a hologram. Could someone point me into the right direction. I saw the thread on spawning, but I couldn't find a script to make a placeable fire off a hologram. Any suggestions? What I have done: I have a placeable ready. .utp I also have a character ready with hologram activated. .utc I also have my dialouge ready. I am looking for a script that will allow the pc to activate a hologram character by making contact with a placeable. Similar to the Bastila Holo on Korriban. Link to comment Share on other sites More sharing options...
stoffe Posted November 22, 2006 Share Posted November 22, 2006 (TSL) Script Search: How to make a placeable fire off a hologram. Could someone point me into the right direction. I saw the thread on spawning, but I couldn't find a script to make a placeable fire off a hologram. Something like this should work if used as an OnUsed event script of the placeable. Remember to set the Placeable to Usable and Party Interact. void main() { object oUser = GetLastUsedBy(); if (!IsObjectPartyMember(oUser)) return; [color=PaleGreen]// ST: Set this to the X, Y, Z coordinates where the hologram should appear.[/color] location lHolo = Location(Vector(0.0, 0.0, 0.0), 0.0); [color=PaleGreen]// ST: Change HologramResRef to the name of your hologram's UTC file.[/color] object oHolo = CreateObject(OBJECT_TYPE_CREATURE, "HologramResRef", lHolo); DelayCommand(0.1, AssignCommand(oHolo, SetFacingPoint(GetPosition(oUser)))); [color=PaleGreen]// ST: Change DialogResRef to the name of the dialog file to start.[/color] DelayCommand(0.5, AssignCommand(oHolo, ActionStartConversation(oUser, "DialogResRef", CONVERSATION_TYPE_CINEMATIC, TRUE))); NoClicksFor(0.5); } Change the coordinates and ResRefs as indicated by the code comments in the script. You'll then have to destroy the hologram with a separate action script from the dialog when the conversation/scene ends. Link to comment Share on other sites More sharing options...
The Source Posted November 22, 2006 Author Share Posted November 22, 2006 To: stoffe -mkb- Has anyone told you how beautiful you are? Thank you. I have plans on making the holo vanish by adding a script to the last line in the dialouge. MacCorp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.