Credge
03-22-2008, 08:35 PM
This is absolutely annoying me and I'm just about ready to quit.
I can create a door just fine. I can get it to "budge" in the right direction I want to move, but it won't move more than a few inches. Even further, I can't make it so only my team can use the door.
So, really, I can't create a door just fine. Something as simple, and as required, as a door should require code that looks like this:
blue_tri_door2 = trigger_ff_script:new({ team = Team.kBlue })
function blue_tri_door2:allowed( touch_entity )
if IsPlayer( touch_entity ) then
local player = CastToPlayer( touch_entity )
return player:GetTeamId() == self.team
end
return EVENT_DISALLOWED
end
function blue_tri_door2:ontrigger( touch_entity )
if IsPlayer( touch_entity ) then
OutputEvent("blue_door_2", "Open")
end
end
Taken from blis_2fort. I mean, I can't even begin to dissect what I'm supposed to do here in order to make a similar door.
Is that even needed? I've seen that monkey doesn't even have stuff in its lua for doors.
:|
I can create a door just fine. I can get it to "budge" in the right direction I want to move, but it won't move more than a few inches. Even further, I can't make it so only my team can use the door.
So, really, I can't create a door just fine. Something as simple, and as required, as a door should require code that looks like this:
blue_tri_door2 = trigger_ff_script:new({ team = Team.kBlue })
function blue_tri_door2:allowed( touch_entity )
if IsPlayer( touch_entity ) then
local player = CastToPlayer( touch_entity )
return player:GetTeamId() == self.team
end
return EVENT_DISALLOWED
end
function blue_tri_door2:ontrigger( touch_entity )
if IsPlayer( touch_entity ) then
OutputEvent("blue_door_2", "Open")
end
end
Taken from blis_2fort. I mean, I can't even begin to dissect what I'm supposed to do here in order to make a similar door.
Is that even needed? I've seen that monkey doesn't even have stuff in its lua for doors.
:|