Jump to content

Recommended Posts

Is there a console command to launch a flare at certain position? Sometimes I just can't find some item in the world. I used to use

c_goto("klaus_sack")

But I'd prefer to see the position and not be teleported there. Is there something like this:

c_launch_flare(c_find("klaus_sack"):GetPosition())

?
Any other way to put a temporary mark on the map would work too. I know about using RevealArea command to see the position, but very often I have the world explored already.

Btw, what is the command to find not the closest item, but get all of them so I could iterate over them, and for example mark every single one on the map?

Thanks for help.

On 10/10/2022 at 5:14 AM, Akomis said:

Is there a console command to launch a flare at certain position? Sometimes I just can't find some item in the world. I used to use

c_goto("klaus_sack")

But I'd prefer to see the position and not be teleported there. Is there something like this:

c_launch_flare(c_find("klaus_sack"):GetPosition())

?
Any other way to put a temporary mark on the map would work too. I know about using RevealArea command to see the position, but very often I have the world explored already.

The first one is hard as you've the light the flare then teleport it to the sack but this may work

function c_launch_flare(prefab) local flare = c_spawn("flare") local x, y, z = c_find("prefab").Transform:GetWorldPosition() flare.components.burnable:Ignite(true) flare.Transform:SetPosition(x, y, z) end

after doing this command do c_launch_flare("klaus_sack") or whatever you wanna find in the ("").

On 10/10/2022 at 5:14 AM, Akomis said:

Btw, what is the command to find not the closest item, but get all of them so I could iterate over them, and for example mark every single one on the map?

TheSim:FindEntities(pos, radius, musthavetags, noneoftags, musthaveoneoftags)

Edited by Insertnamehere2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...