Create entity failureS
I tried to create an entity when you press attack, so far any atempt failed,
The entity should be a ball, wich bounce a little and then stops PHP Code:
|
Re: Create entity failureS
set_pev(ball, pev_velocity, 500)
pev_velocity is a vector. |
Re: Create entity failureS
500.0 ?
|
Re: Create entity failureS
VECTOR : { x, y, z }
To calculate the entity velocity, you need to know to scale the direction you want by a value. What does exactly this entity ? It should spawn in front of you like if you throw a snow ball ? |
Re: Create entity failureS
Quote:
|
Re: Create entity failureS
More like that ( I have not checked if it compiles, you get the idea ) :
Code:
|
Re: Create entity failureS
PHP Code:
PHP Code:
Still not working, no errors in .log |
Re: Create entity failureS
I've edited a bit, forget to retrieve the player's velocity.
If still not working, attach the model. I will give you a full example. |
Re: Create entity failureS
|
Re: Create entity failureS
You forget the T model.
|
| All times are GMT -4. The time now is 04:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.