Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / If Object exist parameter, Any Object possible?

Author
Message
SolaraV
2
Years of Service
User Offline
Joined: 6th Dec 2019
Location:
Posted: 15th Dec 2021 11:06 Edited at: 15th Dec 2021 16:39
I'm trying to tell the engine that if a polygon exists regardless of type or name, then for this specific function it's ID is i
Is this even possible?

If object exist
then objectID = i

To get down to it, I'm working with dark occlusion, is there a way to make it consider any mesh even if not loaded as an object to be occluded by any other mesh object?
Actress/model/musician/ & now a game dev

Derek Darkly
10
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 5th Jan 2022 20:56
I just noticed this post 3 weeks after. Sorry if you've moved on.

DIM ObjectID(MaxObjects)

By creating arrays, we can attach any type of information to an object.
This is what I use.... many others use DATA TYPES instead or a combination of both.

See: Help/principals/1%20datatypes%20and%20variables.htm in your Darkbasic folder.


Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2022-01-19 07:01:40
Your offset time is: 2022-01-19 07:01:40