Can smb add reading feature ID also if trace was successful? I would like to implement destroying barricades on group way.
It's rts\ExternalAI\AICheats.cpp, int CAICheats::HandleCommand(int commandId, void *data). When calling helper->TraceRay() there are 7 arguments passed, and feature can be retrieved via 8th.
Request for AIHCTraceRayId command tweak (Legacy C++ API)
Moderators: hoijui, Moderators
Request for AIHCTraceRayId command tweak (Legacy C++ API)
Last edited by slogic on 10 Sep 2010, 12:40, edited 1 time in total.
Re: Request for AIHCTraceRayId command tweak (Legacy C++ API)
done, please test it with this build:
http://springrts.com/dl/buildbot/defaul ... -g1f664b6/
commit:
http://github.com/spring/spring/commit/ ... 5cd#L3R123
http://springrts.com/dl/buildbot/defaul ... -g1f664b6/
commit:
http://github.com/spring/spring/commit/ ... 5cd#L3R123
Re: Request for AIHCTraceRayId command tweak (Legacy C++ API)
i will have to alter this.
the specs for the callback & commands, allows only one return value. so it will be split into two commands. in other words, do not use as it is yet, and wait for the change please.
the specs for the callback & commands, allows only one return value. so it will be split into two commands. in other words, do not use as it is yet, and wait for the change please.
Re: Request for AIHCTraceRayId command tweak (Legacy C++ API)
Why do you need more than one return value?