Jump to content

Home

Spawning hologram planet TSL


newbiemodder

Recommended Posts

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...