--
[ Picked text/plain from multipart/alternative ]
As far as I know, CBaseEntity:GetAbsOrigin() should return the "center"
point of the model for a model based entity (0,0,0 in your modeling
program).
If that doesn't work you could try CBaseEntity::WorldSpaceCenter().

On 5/2/07, Drak <[EMAIL PROTECTED]> wrote:
>
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> Is there anyway to get the models "center" origin? For example, I'm using
> the model of a concrete pipe (models/prop_pipes/concrete_pipe001a.mdl)
>
> I want to retrieve it's center origin and place a entity in the origin.
> (It's basicly a cannon)
> For the second question, I have the launcher entity (the pipe) have a
> trigger, to turn on or off. Would I even be able to get the entitys origin
> within a the "InputToggle" class member? Using the "this" pointer?
> --
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to