Game Development Community

Door resource data block error

by Kevin Lee · in General Discussion · 04/28/2008 (4:41 pm) · 1 replies

I am using the door resource to add opening and closing doors, but when I try to add a second door and the blocker I keep getting the error "Object 'blocker' is not a member of the 'GameBaseData' data block class'.

My first door works fine and animates, and I can bring in a second door, but not the blocker. Can someone tell me what I need to fix this.

#1
05/12/2008 (12:07 am)
Prooobably you just need to move the blocker definition later in your script. The order does matter in Torquescript. It needs to be defined after any members it calls. (Is "member" the right word, here?)