origin in radiant?


(Igloo) #1

Hello,

I have checked some maps and I noticed that brushes (mean like: trigger_objective_info) already have an origin values from beginning… bet this was made by Radiant that fills the key automatically. In my 1.4.0 it’s not. Hmm… this could be easier as well ^^

If not yet, the developers could improve it.

Greetings,
Igloo


(Flippy) #2

The origin value is simply the coordinate of that entity or brush… all brushes and entities should have one, and radiant should give it automatically when you place your brush or entity.

If has nothing to do with origin brushes, which are completely different, if you thought that maybe?


(Igloo) #3

I didn’t understand your reply at all… what you mean by saying “completely different” ? Origin is the center of entity, brush :stuck_out_tongue:

And in Radiant it is not placed automatically… I don’t know if in newer versions it is :wink:

Greetings,
Igloo


(SCDS_reyalP) #4

Err.

Entities have an origin key, which radiant sets automatically in some cases (non-brush entities).

Brushes do not have keys.

An origin brush is just used by the compiler to set the origin key of a brush based entity. The compiler discards the brush after doing this.


(Igloo) #5

I was just hoping, because origin is used in mapscripting to spawn fakebrushes :stuck_out_tongue:

Thanks.

Greetings,
Igloo


(Flippy) #6

Sorry you are right, brushes don’t have an origin key…
But entities have… and afaik radiant should set these automatically, based on where you rightclicked / moved your entity to!!!


(Shaderman) #7

That’s correct.


(SCDS_reyalP) #8

Only non-brush entities.