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
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:
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.
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)
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.
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.
It could be, try firing it as part of the terminal .dlg and see if it shows up then.