Raised This Month: $ Target: $400
 0% 

Attaching a sprite to a moving entity.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-18-2007 , 15:13   Re: Attaching a sprite to a moving entity.
Reply With Quote #1

Quote:
Originally Posted by P34nut View Post
change this:
PHP Code:
 set_pev(spritepev_movetypeMOVETYPE_FLY); 
to this:
PHP Code:
set_pev(spritepev_movetypeMOVETYPE_FOLLOW); 
Woah, didn't even notice I had it on fly. That's what I get for copy and pasting Weird thing is that it was working with fly.

Quote:
Originally Posted by Wilson [29th ID] View Post
If you're attaching it to a player,

#define TE_PLAYERATTACHMENT 124 // Attaches a TENT to a player (this is a high-priority tent)
// write_byte(TE_PLAYERATTACHMENT)
// write_byte(entity index of player)
// write_coord(vertical offset) (attachment origin.z = player origin.z + vertical offset)
// write_short(model index)
// write_short(life * 10 )
That's what I tried first on the non-player entity. It just spit errors out at me in the console

Anyhow, it's working perfectly now. Thanks for helping
hlstriker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode