Forum

> > CS2D > Scripts > Remove Placed Flare
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Remove Placed Flare

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Remove Placed Flare

Mami Tomoe
User Off Offline

Zitieren
Title says it all, I'd like to easily remove an already thrown/placed Flare from the map.

Thanks in advance.

alt Re: Remove Placed Flare

ImCloudy
User Off Offline

Zitieren
I think freeprojectile console command should work.
Flare is id 54.
Not sure if placed flare is still a projectile, but should be.
If freeprojectile isn't working, then there's no other way how to do it, and you should mention it in thread where ideas are posted.
Good luck.

alt Re: Remove Placed Flare

DC
Admin Off Offline

Zitieren
Yes, cs2d cmd freeprojectile should work.

Projectiles/grenades which are not flying anymore are called "ground projectiles". You get them with cs2d lua cmd projectilelist(1, PlayerID) - note the example in the command reference! Use cs2d lua cmd projectile to find the projectile with the right type.

alt Re: Remove Placed Flare

Mami Tomoe
User Off Offline

Zitieren
When I do
lua print(freeprojectile)
, I get
nil
in return.





EDIT:

OHHH It's a console command not a function...

Epic gamer moments at 2AM with SlowPoke compilation: Episode 1


Further edit:
What is the RGB color of the addhook (blue) console text?
What is the RGB color of the text (gray) console output?
2× editiert, zuletzt 10.09.19 01:21:08
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht