Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------
- function DangerArea:OnEnterArea(entity, areaID)
- local EntityClass = System.GetEntityClass(entity.id);
- local EntityPlayer = System.GetEntity(entity.id);
- local targetPosition = {};
- --Log("OnEnterArea, position ".. table.tostring(entity:GetPos()));
- if EntityClass ~= nil then
- Log("EntityClass "..EntityClass);
- end
- if (EntityClass == "Player" or EntityClass == "Human" or EntityClass == "HMMWV") then
- EntityPlayer:AddImpulse(-1, EntityPlayer:GetCenterOfMassPos(), {x=0, y=0, z=1}, self.Properties.iImpulsePower, 1);
- Log("Impulse "..EntityClass);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement