For example, spawning in a door, and then setting it's pullChain value to true.
Code: Select all
local ID_string = "door_" .. getUniqueID()
spawn("dungeon_door_iron", level_index, x, y, i, 0, ID_string)
[something goes here].door:setPullChain(true)
Code: Select all
local ID_string = "door_" .. getUniqueID()
spawn("dungeon_door_iron", level_index, x, y, i, 0, ID_string)
[something goes here].door:setPullChain(true)
Code: Select all
spawn("dungeon_door_iron", 1, 5, 23, 1, myDoor).door:setPullChain(true)
Code: Select all
local ID_string = "door_" .. getUniqueID()
spawn("dungeon_door_iron", level_index, x, y, i, 0, ID_string)
findEntity(ID_string).door:setPullChain(true)
Code: Select all
local obj = spawn("dungeon_door_iron", level_index, x, y, i, 0)
obj.door:setPullChain(true)