Make an attachment which will be much more flexible. Basically you have to
set up a bone in the model around where ya want it. Open it in hlmv and goto
the attachment screen. Select your bone as the ref bone and move the
attachment to where you want it. Then export the code down the bottom into
the qc file. Now have a look at the rpg for how you can get the attachment
point and then just use that.

Look at the sdk site for more info.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Drak
Sent: Thursday, May 03, 2007 2:13 AM
To: [email protected]
Subject: [hlcoders] Models center origin?

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