weapon_c4 at round start
i'm trying to save the c4 entity id in a global variable but when the round start, instead of getting one "weapon_c4", i got 2 entity of c4 bombs... my question is, why do i get 2 of them ( at any map ) and which one is the real one...
at round start event. the code is only for checking why do i get 2 gBomb is returning the first c4 id but why there are 2 weapon_c4 Code:
gBomb = engfunc(EngFunc_FindEntityByString, -1, "classname", "weapon_c4")Code:
new EntClass[32] |
Re: weapon_c4 at round start
Start to explain what you want to do exactly.
|
Re: weapon_c4 at round start
i just need the c4 entity id at every round start. but instead of getting one weapon_c4 entity as it should be ( i suppose ), i got 2 of them
|
Re: weapon_c4 at round start
He meant what you really want to do with that c4 entity, why do you need it ?
Because the c4 is tricky and you might go at this all wrong... for example, the placed c4 has "grenade" classname. |
Re: weapon_c4 at round start
no, the c4 isn't going to be planted at all. i just need the c4 id because, of a few thing
- Glow c4 ( i know i don't need his specific id to glow it ) - Give a specifi player the c4 if it is dropped on the floor. And i need the c4 id in a global var for later uses |
Re: weapon_c4 at round start
|
Re: weapon_c4 at round start
Quote:
Code:
new bomb = fm_find_ent_by_class(-1, "weapon_c4") |
Re: weapon_c4 at round start
Have you tried doing it at playerspawn??
and you can use PHP Code:
|
Re: weapon_c4 at round start
i think i got a solution but, can i use
Code:
fm_transfer_user_gun(0, id, CSW_C4) |
Re: weapon_c4 at round start
Quote:
|
| All times are GMT -4. The time now is 03:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.