|
|
 |
04-04-2009, 07:19 PM
|
#1
|
|
Junior Member
Join Date: Oct 2008
Posts: 316
|
Why can't I get this to spawn?
I'm a first time scripter, so thanks to who ever helps me here ahead of time.
I've managed to get the following script compiled, but I can't get the monument to spawn. I want it to appear in the left hand small room right before you get to the Evil Kiria vision.
Is there something I'm missing, like a trigger or should I be using a different set of scripts entirely for what i want to do?
Code:
void main()
{
float x=56.25f;
float y=4.07f;
float z=9.88f;
float r=0.0f;
vector MyVec=Vector(x,y,z);
location MyLoc=Location(MyVec,0.0);
object osithmonument=CreateObject(OBJECT_TYPE_PLACEABLE,"sithmonument05",MyLoc);
CreateItemOnObject("g_i_lan1", osithmonument);
CreateItemOnObject("w_rocket_m", osithmonument, 10);
}
|
|
you may:
quote & reply,
|
04-04-2009, 08:57 PM
|
#2
|
|
N7 Commando
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
|
Code looks fine to me. What are you using to trigger the script? A conversation? Or do you want the monument to be spawned as soon as you enter the room?
- Star Admiral
|
|
you may:
quote & reply,
|
04-04-2009, 10:43 PM
|
#3
|
|
Junior Member
Join Date: Oct 2008
Posts: 316
|
Soon as i enter the room would be my preferred method, or spawned when I unlock the nearest door.
|
|
you may:
quote & reply,
|
04-05-2009, 12:44 PM
|
#4
|
|
N7 Commando
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
|
You can spawn it after unlocking the nearest door by putting the script into the OnOpen field of the door. Locate the door that you are using with KT, open the .utd file and click the Scripts tab. Type the name of your compiled script into the OnOpen field and save the file into your Override folder.
- Star Admiral
|
|
you may:
quote & reply,
|
04-05-2009, 09:59 PM
|
#5
|
|
Junior Member
Join Date: Oct 2008
Posts: 316
|
Ok, I checked out the door like you suggested, and there's already something in the OnOpen slot:
Now can I add another script trigger, is this junk code I can remove, or what?
|
|
you may:
quote & reply,
|
04-06-2009, 12:47 AM
|
#6
|
|
N7 Commando
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
|
Code:
void main() {
float x=56.25f;
float y=4.07f;
float z=9.88f;
float r=0.0f;
vector MyVec=Vector(x,y,z);
location MyLoc=Location(MyVec,0.0);
object osithmonument=CreateObject(OBJECT_TYPE_PLACEABLE,"sithmonument05",MyLoc);
CreateItemOnObject("g_i_lan1", osithmonument);
CreateItemOnObject("w_rocket_m", osithmonument, 10);
ExecuteScript("tr_pc_god", OBJECT_SELF);
}
Try this script version. Compile it and replace the tr_pc_god script with whatever you call this script.
- Star Admiral
|
|
you may:
quote & reply,
|
04-06-2009, 02:04 PM
|
#7
|
|
Junior Member
Join Date: Oct 2008
Posts: 316
|
It's spawning now. Sort of. It's currently invisible for some reason.
I had managed to get it to spawn as rubble after fixing a mistype between the script and the utp name/information. Now it's indivisible and not showing the "hey something's here" blue circle like it had as rubble.
Last edited by Darth Cryptic; 04-06-2009 at 03:32 PM.
Reason: Updated to reflect change in status without makeing a new post
|
|
you may:
quote & reply,
|
04-06-2009, 04:14 PM
|
#8
|
|
N7 Commando
Join Date: Oct 2008
Location: Omega 4 Relay
Posts: 656
Current Game: Mass Effect 2
|
But is it actually there? As in, you try to walk over it, and it blocks your path?
- Star Admiral
|
|
you may:
quote & reply,
|
04-06-2009, 05:10 PM
|
#9
|
|
Junior Member
Join Date: Oct 2008
Posts: 316
|
Yeah it's there, walked right into it.
Cleaned up the utp a little more and I can now get the "use saber, security, blow it up" indicator, but the monument itself is still invisible.
Saber and blowing it up works at opening it, but the security/use tunnerler seem to be set way high so I couldn't get it open that way.
|
|
you may:
quote & reply,
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Forum Jump
|
|
|
|
|
|