peteralto
Member
- Joined
- Nov 1, 2020
- Messages
- 93
- Solutions
- 1
- Reaction score
- 17
I have an event, and when starting it creates an access portal.
It has a determined coordinate. I wish I could create more than one teleport at the same time. Below is an excerpt of the code:
It has a determined coordinate. I wish I could create more than one teleport at the same time. Below is an excerpt of the code:
Lua:
EventX = {
teleportPosition = Position(32364, 32232, 7),
teleportActionId = 41391
}
local ITEM_TELEPORT = 1387
function EventX:open()
local item = Game.createItem(ITEM_TELEPORT, 1, self.teleportPosition)
item:setAttribute('aid', self.teleportActionId)
return true
end