- Timestamp:
- Jun 28, 2006, 6:45:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/lua_extra_functions
r3921 r3927 1 1 !--------------- Copy this to the beginning of a lua script to use the functions ---------------! 2 2 3 3 -- Initialises the random number generator 4 randinit = false 4 5 function randInit() 5 6 … … 10 11 11 12 end 13 14 15 -- Returns the distance between (x1,x2,x3) and (y1,y2,y3) 16 function dist( x1,x2,x3, y1,y2,y3 ) 17 18 return math.sqrt( (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2 ) 19 20 end
Note: See TracChangeset
for help on using the changeset viewer.