Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

e2 docs npc

📁 EntitiesUpdated 1 hour ago•0 views
Npc :npcGoWalk( Rv2) Tells the NPC to walk to position V (5 ops) :npcGoRun( Rv2) Tells the NPC to run to position V (5 ops) :npcAttack() Tells the NPC to use their melee attack (5 ops) :npcShoot() Tel

Jump to table of contents

Npc
:npcGoWalk( Rv2)
Tells the NPC to walk to position V (5 ops)

:npcGoRun( Rv2)
Tells the NPC to run to position V (5 ops)

:npcAttack()
Tells the NPC to use their melee attack (5 ops)

:npcShoot()
Tells the NPC to shoot their gun (5 ops)

:npcFace( Rv2)
This will rotate the NPC to face position V. This is purely aesthetic and can't be used to aim their weapon (5 ops)

:npcGiveWeapon()
Gives the NPC an SMG (5 ops)

:npcGiveWeapon( Rv2)
Gives the NPC a weapon. Example: E:npcGiveWeapon("pistol"). Other arguments include "ar2", "crowbar", "357", "shotgun", "crossbow", "rpg", "frag", etc. Other such as the bugbait or slam may be buggy (5 ops)

:npcStop()
Stops any anything the NPC is doing, including things it decided to do by itself (5 ops)

= :npcGetTarget()
Returns what the npc is currently targeting (5 ops)

:npcSetTarget( Ent)
Sets the npcs current target (5 ops)

:npcRelationship( Rv2, Rv3, Rv4)
Will set the NPC's relationship to the specified entity to the S input, priority N. Priority is any number between 0 and 999. The relationship string can be either "like", "neutral", "hate" or "fear". Same goes for all other relationship functions (5 ops)

:npcRelationship( Rv2, Rv3, Rv4)
Same as E:npcRelationship(entity,string,number), but sets relationship to an entire class specified by the first string. Example: "npc_manhack", "prop_physics" (5 ops)

= :npcRelationshipByOwner( Rv2, Rv3, Rv4)
Sets the NPC's relationship to all currently existing NPCs owned by player E. Returns number of entities added to relationships (5 ops)

= :npcDisp( Rv2)
Returns the NPC's relationship to entity E (5 ops)

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.