Jump to content

How to remove a keyword by script?


delgathar

Recommended Posts

Posted

Hello,

 

I had trouble adding a keyword, then I read to add an alias, attach the keyword to the alias, then force the alias on the player.

CAE_EnableAlias.ForceRefTo(PlayerRef)

It worked.

 

But now how do i get rid of it?

I've tried the clear() function but I just get compiler errors. 

"None is not a known user type"

"CAE_EnableAlias is not a property on script actor or one of its parents"

 

CAE_EnableAlias.PlayerRef.Clear()

PlayerRef.CAE_EnableAlias.Clear()

PlayerRef is not a property on script referencealias or one of its parents

 

Now

CAE_EnableAlias.Clear() gives no errors, but it doesn't seem to work either.  I was still showing the keyword after it should have been deleted.

Thank you.

Posted

Is there some kind of delay, because I used CAE_EnableAlias.Clear() first.  I double checked the logic but it didn't remove the keyword, that was why I tried the other options.  Thank you.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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