UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: Remixful on June 25, 2014, 07:47:23 pm

Title: Origin Key?
Post by: Remixful on June 25, 2014, 07:47:23 pm
The UGX Wiki states to:
Quote
Open the Entity Window and click the "origin" Key. Copy its value to your clipboard, then paste it somewhere safe for reference.

Now, when I press N, there is no "origin" key to be found anywhere. Perhaps I'm not looking in the right place? Not sure. Can anybody help me?
Title: Re: Origin Key?
Post by: n123q45 on June 25, 2014, 08:18:08 pm
the orgin key/value tells the position of the entity. you can also find this out via the GetOrigin() function. to do this you set the entity as a variable and use that function on it. ex:
Code Snippet
Plaintext
var GetOrigin();
Title: Re: Origin Key?
Post by: Remixful on June 25, 2014, 08:33:08 pm
If I set key to origin, what is the value?
Title: Re: Origin Key?
Post by: treminaor on June 25, 2014, 08:36:54 pm
@n123q45  :please:

@OP Which wiki page are you following, and keep in mind you have to have an entity selected in radiant for any origin key to be shown in the Entities window.
Title: Re: Origin Key?
Post by: Remixful on June 25, 2014, 08:41:36 pm
@n123q45  :please:

@OP Which wiki page are you following, and keep in mind you have to have an entity selected in radiant for any origin key to be shown in the Entities window.

http://ugx-mods.com/wiki/index.php?title=Creating_a_Moving_Door_Blocker (http://ugx-mods.com/wiki/index.php?title=Creating_a_Moving_Door_Blocker)
And yes, I do have the door selected.
Title: Re: Origin Key?
Post by: treminaor on June 25, 2014, 08:45:25 pm
http://ugx-mods.com/wiki/index.php?title=Creating_a_Moving_Door_Blocker (http://ugx-mods.com/wiki/index.php?title=Creating_a_Moving_Door_Blocker)
And yes, I do have the door selected.
One reason it might not have an origin is because the door hasn't been created as a proper entity. Another reason might be that it needs to be moved a little first and then moved back to where it needs to be in Radiant.

I'm also not 100% sure that tutorial is working because so far no one has verified it for me as working or broken.
Title: Re: Origin Key?
Post by: Remixful on June 25, 2014, 08:51:50 pm
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.snag.gy%2FrNVjq.jpg&hash=af3dc38fc46650fb00d18f49f371434d14b1d8e7)

I only see an origin on the bottom of Radiant, but not exactly sure how I'm supposed to copy it...
So i guess I can use distance for script_vector?
Title: Re: Origin Key?
Post by: treminaor on June 25, 2014, 08:55:33 pm
(http://i.snag.gy/rNVjq.jpg)

I only see an origin on the bottom of Radiant, but not exactly sure how I'm supposed to copy it...
So i guess I can use distance for script_vector?
Your door is not a door, its still a regular brush - which is why the classname is "worldspawn". Remove all of those keys on the door except for the classname, then with the door still selected right click it in the 2d view and go to script -> brushmodel.
Title: Re: Origin Key?
Post by: Remixful on June 25, 2014, 09:04:09 pm
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.snag.gy%2F8bCOR.jpg&hash=1c82588ddbe9c1f8977db6607142d07da22f3381)
I moved around the door a few times, no origin key has been created.
Title: Re: Origin Key?
Post by: treminaor on June 25, 2014, 09:12:31 pm
The UGX Wiki states to:
Now, when I press N, there is no "origin" key to be found anywhere. Perhaps I'm not looking in the right place? Not sure. Can anybody help me?
I guess script_brushmodels don't get origin keys assigned to them by Radiant, which is probably why other tutorials I've seen have you use script_origin's with the brushmodels. I'm not really sure what to do to fix this because I'm thinking it involves some Radiant trick to give the brushmodel an origin, I guess I still need to work on this tutorial. I don't have a link at the moment but I know there is a working swinging doors tutorial on ZM that you can follow.
Title: Re: Origin Key?
Post by: Remixful on June 25, 2014, 09:14:52 pm
I'm just going to use the distance on the bottom as of now, and see how it goes.
Otherwise, I can just find other ways to find vector values.
Thanks for the help anyways. :)

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fcdn.memegenerator.net%2Finstances%2F500x%2F44852381.jpg&hash=e5a12440c4c087b9f2edad2740057f7c6d7d316b)