server/src/scripts/hse-portals.lua
Enno Rehling 03b2543d30 Renaming a lot of the HSE script files, because they are more generic than I
thought they would be and can be reused.

Added HSE4 rules files.

Added sorting by Race to the mapper's newfaction list, which might be a bad
idea for automated seeding.
2005-02-18 09:34:12 +00:00

19 lines
351 B
Lua

if gate_travel==nil then
dofile(scriptpath .. "/gates.lua")
end
buildings = {}
function portal_exchange(b1, param)
id = buildings[param]
if id == nil then
buildings[param] = b1.id
else
b2 = get_building(id)
u1 = gate_units(b1, 100)
u2 = gate_units(b2, 100)
gate_travel(b1, u2)
gate_travel(b2, u1)
end
return 1
end