Talk:RL Terrain
Jump to navigation
Jump to search
What about implementation? any ideas there?
A function might be created that is called every time when something "uses" the terrain. Creature stepping on or missile flying over should call this function. Passed parameters probably would be terrain type and actor affected by the terrain. Also IsFlying flag, if the actor is an item (an arrow behaves differently if kicked or shot). Then a decision is made what effects terrain has on actor and vice versa.