Akomis Posted October 10, 2022 Share Posted October 10, 2022 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. Link to comment https://forums.kleientertainment.com/forums/topic/143712-console-command-to-put-a-flare-mark-on-the-map/ Share on other sites More sharing options...
Rickzzs Posted October 10, 2022 Share Posted October 10, 2022 You'd like inst:AddComponent('maprevealable') inst.components.maprevealable:AddRevealSource('compass') if I don't spell wrong Link to comment https://forums.kleientertainment.com/forums/topic/143712-console-command-to-put-a-flare-mark-on-the-map/#findComment-1602198 Share on other sites More sharing options...
Boogiepop210 Posted October 15, 2022 Share Posted October 15, 2022 (edited) 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 October 23, 2022 by Insertnamehere2 Link to comment https://forums.kleientertainment.com/forums/topic/143712-console-command-to-put-a-flare-mark-on-the-map/#findComment-1602945 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now