CORECORECORE
  • Home
  • Events
  • Wiki
  • Changelog
  • About Us

Wiki

README
Basics
FaQ
Lore
My First Core Bot
Tips and Tricks

Action Execution Order
Action Position Limits
Bombs
Configs
Cooldowns
Getter Filtering
Playing Against Others
Website Setup

⚙️ startGame()
🧩 s_game

⚙️ action_attack()
⚙️ action_build()
⚙️ action_createUnit()
⚙️ action_move()
⚙️ action_pathfind()
⚙️ action_transferGems()

⚙️ get_unitConfig()
⚙️ print_config_game()
⚙️ print_config_unit()
⚙️ print_config()
🧩 s_config
🧩 s_unit_config

⚙️ get_obj_filter_nearest()
⚙️ get_obj_from_id()
⚙️ get_obj_from_pos()
⚙️ get_objs_filter_count()
⚙️ get_objs_filter()

⚙️ print_obj()
⚙️ print_objs()
🔢 e_build_type
🔢 e_obj_type
🔢 e_unit_type
🧩 s_obj
🧩 s_pos

⚙️ function core_get_obj_from_id(...)

Last updated: 11/17/2025

URL

https://github.com/42core-team/monorepo/blob/dev/client_lib/src/public/get.c#L4

Description

Get any object based on its id.

Signature

t_obj *core_get_obj_from_id(unsigned long id);

Parameters

  • unsigned long id: The id of the object the function should get

Return

  • t_obj *: The selected object with a matching id or NULL if the selection didn't match anything.

Examples

// we only need one carrier for now
int carrier_id = -1;

void ft_on_tick(unsigned long tick)
{
	if (carrier_id >= 0)
	{
		t_obj *carrier = core_get_obj_by_id(carrier_id);

Related

  • 🧩 struct s_obj
CORECORE

CORE Game is a competitive coding challenge where you design and program your own bots to battle it out in a dynamic 2D arena.

Quick Links

HomeEventsWikiChangelogAbout Us

Connect

Status PageGitHubReport an issue

© 2025 CORE Game. All rights reserved.

ImpressumDatenschutz