(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.
(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.
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 :)