Game Development Community

Dinamically changes to foliage count?

by Fabio Luis Stange · in Technical Issues · 02/03/2007 (1:09 am) · 0 replies

I'm using fxFoliageCount to show some trees, and I'd like to let the user change the number of foliages dinamically (and affect his client-side view only), so that there more trees in newer systems.

I exported CreateFoliages() to the console, since that's where it seemed to be doing the job I needed, but when I call that (in the client), I get a message box "Trying to create Foliage on Server, this is bad!".

This came from an assert:
AssertFatal(isClientObject(), "...");

Why the heck did that failed? Is this because I am running client and server in the same machine? Will isClientObject() always return false in this case?

Pressing Cancel in that message box made the program close, pressing retry made it crash :) (still didn't debugged where it crashed tho)