OnPlayerOverTile

Usage

void OnPlayerOverTile_?( int TileLocationX, TileLocationZ)


Summary

This event is fired whenever the player walks over the specified tile type numer.


More Information

Replace ? with the tile type number in the name!
TileLocationX, TileLocationZ = Are populated with the coordinates of encountered the tile (in tile coordinates).

This function is great for doors and switches.


Example

void OnPlayerOverTIle_100( int TileLocationX, int TileLocationZ)
{
    SC_ConsoleMessages( "The player walked over a tile 100 which will be changed to 101");
    SC_SetTerrainTile( TileLocationX, TileLocationZ, 101);
}


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator