Raised This Month: $ Target: $400
 0% 

Spawn Weapon at Origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 01-09-2011 , 07:14   Spawn Weapon at Origin
Reply With Quote #1

Hey guys,

How could I spawn a Weapon at a Origin? (-348, -683, -135)

I think it's something with Entitys, isnt it?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-09-2011 , 07:17   Re: Spawn Weapon at Origin
Reply With Quote #2

entity_set_origin() or set_pev() + pev_origin
__________________
Arkshine is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 01-09-2011 , 07:21   Re: Spawn Weapon at Origin
Reply With Quote #3

okay thats clear thanks but i dont know how to make the entity itselfs.

new ent = create_entity("....")

but what when i want eg. a awp
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-09-2011 , 08:47   Re: Spawn Weapon at Origin
Reply With Quote #4

entity_set_origin(entity, origin) or set_pev() + pev_origin engfunc(EngFunc_SetOrigin, entity, origin)

If you use set_pev(, pev_origin, ) or entity_set_vector(, EV_VEC_origin
Then you have to spawn the weapon so the game send SetOrigin

create_entity("weapon_awp")
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 02:01.


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