Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 6:45:50 PM (18 years ago)
Author:
snellen
Message:

falldown.lua implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/lua_extra_functions

    r3921 r3927  
    11!--------------- Copy this to the beginning of a lua script to use the functions ---------------!
    22
    3 
     3-- Initialises the random number generator
     4randinit = false
    45function randInit()
    56
     
    1011
    1112end
     13
     14
     15-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
     16function dist( x1,x2,x3, y1,y2,y3 )
     17
     18return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 )
     19
     20end
Note: See TracChangeset for help on using the changeset viewer.