ForceHackIngredient

From Nomad DB
Revision as of 14:19, 15 April 2020 by Wasdennnoch (talk | contribs) (Created page with "Hacks the specified hackable entity. Said entity doesn't have to be visible to the player or have a "Hack" interaction prompt, as long as it has a Hacking Component. == Synta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hacks the specified hackable entity. Said entity doesn't have to be visible to the player or have a "Hack" interaction prompt, as long as it has a Hacking Component.

Syntax

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

Example

Spawns and hacks the Spider Tank.

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

Related Pages