Thread: LPC Help
View Single Post
Old 11-14-2002, 09:35 AM   #5
kaylus1
 
Posts: n/a
This will work, but the only problem that you will have using this in a reset is that you will destruct yourself. Plus, I'm not sure if children(this_object())->destruct would work, It may, but children() returns an array of objects.

That's why I looped it in the code example I showed (though using this_object() for the children would work and is cleaner =)

[code]
rooms = children(this_object());

for(i = 0; i < sizeof(rooms); i++) {
rooms[i]->destruct();
}
[/quote]

I'm sorry my previous letter was so mangled, I was half asleep and drugged on migraine meds.

Anyway the code I showed in the last letter would be good to put in the vr_room.c object. What you need to do is create that by basically inheriting your room.c (or appropriate one) file, and if your move() function is in your ROOM object file,
let that just be inherited or call from inheritance "::move()".

If you anyone needs clearer instructions or personal help feel free to email me..

Kaylus@Solice
  Reply With Quote