ForceHackIngredient

From Nomad DB
Revision as of 19:40, 27 October 2020 by SpeckBomber (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hacks the specified hackable entity (entities that have a CHackingComponent).

Syntax

ForceHackIngredient(targetEntityId, hackerEntityId)
  • targetEntityId (string): ID of the entity to be hacked
  • hackerEntityId (string): ID of the hacking entity

Example

Spawns the spider drone and hacks it to take control over the drone.

local spiderDrone = SpawnEntityFromArchetype("{a0b8ae08-00fc-4458-9fcd-f70dc6ba6b7e}", 0, 0, 0, 0, 0, 0)
ForceHackIngredient(spiderDrone, GetLocalPlayerEntityId())

Related Pages