AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spawn Weapon at Origin (https://forums.alliedmods.net/showthread.php?t=147425)

mottzi 01-09-2011 07:14

Spawn Weapon at Origin
 
Hey guys,

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

I think it's something with Entitys, isnt it?

Arkshine 01-09-2011 07:17

Re: Spawn Weapon at Origin
 
entity_set_origin() or set_pev() + pev_origin

mottzi 01-09-2011 07:21

Re: Spawn Weapon at Origin
 
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

ConnorMcLeod 01-09-2011 08:47

Re: Spawn Weapon at Origin
 
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")


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

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