Jump to content

How to get a NPC's reference ID


irswat

Recommended Posts

I'm trying to use killactor but am getting the must be a persistent reference error when trying to compile.

the script is a ref walking script that uses getfirstref, and getnextref, and stores the NPC into rCurrentNPC.

 

is there a way I can procedurally 'name' the NPC so that I can call killactor on that ref?

Link to comment
Share on other sites

I was using KillActor wrong. I didnt realize I had to pass the killers ref as well and so I was getting the persistent ref warning, and it wouldn't compile. It is working now.

Is there a command to make somebody explode? Killactor doesn't seem to do being stepped on by a giant mech justice.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...