Game Development Community

Terrain Texture as a Resource?

by Simon Rushton · in RTS Starter Kit · 03/08/2006 (4:04 pm) · 1 replies

Does anyone know if a certain texture if painted onto the terrain could be used as a resource...

e.g. SPICE FIELDS in DUNE II

In the Domination RTS-SK Mod which I hope I can help with... is there a set resource collector???

How does the resource collecting work... I know there are rocks but I cant seem to collect anything...

How do I set resource collecting to just one type of unit... e.g. HARVESTER in DUNE II

p.s. Anyone remember the Harkonnen Devestator Tank... What a great Tank that was...

I would love to make a DUNE II CLONE out of the RTS Kit...

#1
03/08/2006 (5:21 pm)
What you would want to do is have an invisible object that when it was added painted the terrain under it. Resource collecting works where if you right click on a resource it calls a function called onrightmousedownonstaticobject() or something like that and then checks if that is a resource and if the selected unit is a villager then that unit goes, collects and drops it off at the town center.