Epok Engine

EPOK RUNTIME

epok::bp::api::set_active

Function · 1 overload

Function

Sets active as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp::api
Header
blueprint_api.hpp
Overloads
1

Declaration

Declaration
inline void set_active(ObjectId target,bool active)

Sets active as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
targetObjectIdValue supplied for target. Keep referenced or pointed-to data valid for the complete call.
activeboolValue supplied for active. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId target
// bool active

epok::bp::api::set_active(target, active);

Why use it

It provides direct, allocation-conscious access to compiled Blueprint execution and object interaction. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/blueprint_api.hpp:67

Related members