[resolved] create_entity() How to make an entity at user's aim.
I have looked at other plugins, looked at the entity tutorial by Hawk552, but I don't understand why the code below does not work. As far as I know, this should create a player.mdl at the origin where the client's sight intersects with another ent or world.
The only output I get is the client_print(). I don't see any models. Code:
|
Re: create_entity() How to make an entity at user's aim.
Try using DispatchSpawn().
|
Re: create_entity() How to make an entity at user's aim.
Now I have the code below, but I still see no models.
Code:
|
Re: create_entity() How to make an entity at user's aim.
I learned that get_user_origin() returns the origin in integers, but an entity must be spawned at a float.. here is the working code.
Code:
|
Re: [resolved] create_entity() How to make an entity at user's aim.
The engine_stocks.inc has the handy IVecFVec and FVecIVec functions.
|
Re: [resolved] create_entity() How to make an entity at user's aim.
No it doesn't. I was moved to the vector.inc (engine not required).
|
| All times are GMT -4. The time now is 22:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.