PDA

View Full Version : GameObj.npcs.status.



crb
07-23-2016, 09:26 PM
I finally upgraded

Anywhere in any of my scripts where I reference the above (GameObj.npcs.status.), I get an error such as

--- Lich: error: undefined method `status' for #<Array:0x10c276e0>

??? Is status no longer valid in the newest version?

Tgo01
07-23-2016, 09:43 PM
What is the exact code you're using?

crb
07-23-2016, 09:45 PM
GameObj.npcs.status.each { |dude|


if dude.status =~ /flying/
etc etc etc

crb
07-23-2016, 09:47 PM
and I think I know the issue, I gotta remove status from the call, it used to be able to be in there though I see it is redundant.

Tgo01
07-23-2016, 09:49 PM
Glad I could help.