Jump to content

Check if package is running in script ?


csbx

Recommended Posts

The following (just cribbed from a 'condition' application) doesn't seem to work. Is this not something one can call in a script ? Or is there another way around ?

 

if (akActionRef == PlayerRef) && (myactor.GetIsCurrentPackage(thispackage) == 1)

blahblah

endif

Link to comment
Share on other sites

You want GetCurrentPackage() so something like:

 

If (NPCRef as Actor).GetCurrentPackage() == pThePackage

 

 

edit: update as testing pPlayerREF is a useless example

Edited by SKK50
Link to comment
Share on other sites

  • Recently Browsing   0 members

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