Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

(TSL) Script Search: How to make a placeable fire off a hologram.

Page: 1 of 1
 The Source
11-22-2006, 10:27 AM
#1
(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.
 stoffe
11-22-2006, 10:45 AM
#2
(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;

// ST: Set this to the X, Y, Z coordinates where the hologram should appear.
location lHolo = Location(Vector(0.0, 0.0, 0.0), 0.0);

// ST: Change HologramResRef to the name of your hologram's UTC file.
object oHolo = CreateObject(OBJECT_TYPE_CREATURE, "HologramResRef", lHolo);

DelayCommand(0.1, AssignCommand(oHolo, SetFacingPoint(GetPosition(oUser))));

// ST: Change DialogResRef to the name of the dialog file to start.
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.
 The Source
11-22-2006, 10:48 AM
#3
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 :)
Page: 1 of 1