end |
]]) |
f:SetAttribute('_onstate-vehicle', [[ |
if(newstate == 'vehicle') then |
control:ChildUpdate('actionpage', self:GetID()) |
elseif(newstate == 'novehicle') then |
self:SetAttribute("state",newstate) |
if(newstate == 'player') then |
self:SetAttribute('actionpage', nil) |
control:ChildUpdate('actionpage', self:GetID()) |
else |
self:SetAttribute('actionpage', 11) |
end |
print(newstate, self:GetAttribute('action--old'),self:GetAttribute('actionpage')) |
control:ChildUpdate('actionpage', self:GetID()) |
]]) |
if(class == "WARRIOR") then |
RegisterStateDriver(f, "page", "[bonusbar:1] 7;[bonusbar:2] 8;[bonusbar:3] 9;1") |