Raised This Month: $ Target: $400
 0% 

Missile hitbox (size) problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 11-09-2007 , 11:45   Re: Missile hitbox (size) problem
Reply With Quote #1

Try it in this order:
Code:
ball = create_entity("info_target") set_pev(ball, pev_classname, "ball") set_entity_model(ball, "models/w_fb.mdl") set_pev(ball, pev_body, random_num(1, 3)) set_pev(ball, pev_movetype, MOVETYPE_BOUNCE) set_pev(ball, pev_solid, SOLID_TRIGGER) set_pev(ball, pev_friction, 0.25) set_pev(ball, pev_gravity, 1.0) set_entity_size(ball, Float:{-6.0, -6.0, -6.0}, Float:{6.0, 6.0, 6.0}) set_entity_origin(ball, ball_position[0]) set_pev(ball, pev_nextthink, get_gametime() + 0.1)
When creating entities etc I usually leave the size and origin to last and never had any problems at all.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz 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:21.


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