Unit selection question

Unit selection question

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Unit selection question

Post by AF »

Where is users selecting units via mouse handled? aGorm asked for the ability to selected through features. Also if I were to add the option to select allied units and issue them commands as an option in the starting script, where would I look within the code?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Grep for MousePress, one of the (many) MousePress functions probably calls CGameHelper::TraceRay (or sth like that) and uses that to add units to selection / give commands etc.

I don't really have better hints atm...
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Post by aGorm »

Good luck AF you star.... hope you can figure it out!

aGorm
Post Reply

Return to “Engine”