I wonder if the callback->canBuildAt() returns TRUE if there's a reclaimable feature like a wreck on the test spot?
And how do you get the feature info in that spot? Is it possible?
Thx,
Alik
P.S.
callback->canBuildAt() return value
Moderator: Moderators
I added these a while back:
I'm not sure about canBuildAt() though, there are int return codes all over the place and I don't really get their meaning (Plus Im too lazy to take a better look at it)
Code: Select all
int GetFeatures (int *features, int max);
int GetFeatures (int *features, int max, const float3& pos, float radius);
FeatureDef* GetFeatureDef (int feature);
float GetFeatureHealth (int feature);
float GetFeatureReclaimLeft (int feature);
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Would it be possible to add 3=You are trying to place a moho and there is a Mex in the way?SJ wrote:It returns true even if there is a reclaimable feature in the way. Internally spring uses an int where 2=totally clear, 1=clear but feature in the way, both get translated to true though.
So we could queue Mohos without having to reclaim/destroy them first.