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.

Spawning hologram planet TSL

Page: 1 of 1
 newbiemodder
02-04-2010, 4:14 PM
#1
I'm trying to spawn one of those hologram planets you see in the EH for my mod so it appears at a computer station. I have this compiled script that I kind of made from one of the main scripts from the planet adding tutorial.
void main() {
location lHolo = Location(Vector(-39.69, 124.81, 2.0), 0.0);
{
object oNewHoloWorld = CreateObject(OBJECT_TYPE_PLACEABLE, "holo_kor", lHolo);
if(GetIsObjectValid(oNewHoloWorld))
{
//AssignCommand ( oNewHoloWorld, ActionPlayAnimation(ANIMATION_PLACEABLE_ANIMLOOP01 , 1.0, -1.0));
DelayCommand( 1.0, AssignCommand ( oNewHoloWorld, ActionPlayAnimation(ANIMATION_PLACEABLE_ANIMLOOP01 ) ) );
}
}
}


It compiles but does not work. I know nothing about scripting, I just try to muddle my way thru. Any help from a good scripter would be appreciated. Thx
 deathdisco
02-04-2010, 4:33 PM
#2
I'm by no means a scripter but you have to remove the "//" for that part of the script to be compiled in the *.ncs. That's used for comments or to block out a part of a script you don't want to run.

void main() {
location lHolo = Location(Vector(-39.69, 124.81, 2.0), 0.0);
{
object oNewHoloWorld = CreateObject(OBJECT_TYPE_PLACEABLE, "holo_kor", lHolo);
if(GetIsObjectValid(oNewHoloWorld))
{
AssignCommand ( oNewHoloWorld, ActionPlayAnimation(ANIMATION_PLACEABLE_ANIMLOOP01 , 1.0, -1.0));
DelayCommand( 1.0, AssignCommand ( oNewHoloWorld, ActionPlayAnimation(ANIMATION_PLACEABLE_ANIMLOOP01 ) ) );
}
}
}

If that doesn't work you'll have to wait for someone more knowledgeable to reply.:giveup:
 VarsityPuppet
02-04-2010, 5:09 PM
#3
Actually, the part he commented out is unnecessary. The line below it is exactly the same, just it is delayed.

Okay, the sad thing, is I know where to find the answer to this, but I don't know the name of the scripts to find them in.. not right now anyways.
 DarthStoney
02-04-2010, 5:17 PM
#4
I don't have the files in front of me right now (so I can't be sure)but ,did you add the .utc file to that module? I'm asking because I believe the .utc file only exists in 003EBO_s.rim it's not in the main placeable templates. (I may be wrong though)
 VarsityPuppet
02-04-2010, 5:40 PM
#5
I don't have the files in front of me right now (so I can't be sure)but ,did you add the .utc file to that module? I'm asking because I believe the .utc file only exists in 003EBO_s.rim it's not in the main placeable templates. (I may be wrong though)

That could very well be it, actually.
 newbiemodder
02-04-2010, 5:52 PM
#6
I don't have the files in front of me right now (so I can't be sure)but ,did you add the .utc file to that module? I'm asking because I believe the .utc file only exists in 003EBO_s.rim it's not in the main placeable templates. (I may be wrong though)

yes. I'm using the same .utp from the EBO module. I have this script on the onuse script line for my computer terminal..so I don't know if that is the problem.
 DarthStoney
02-04-2010, 6:08 PM
#7
It could be, try firing it as part of the terminal .dlg and see if it shows up then.
Page: 1 of 1