Difference between revisions of "ForceHackIngredient"

From Nomad DB
(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...")
(No difference)

Revision as of 14:19, 15 April 2020

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